SOLVED

How to put Notes and priority fields data in Task POST API

%3CLINGO-SUB%20id%3D%22lingo-sub-2468665%22%20slang%3D%22en-US%22%3EHow%20to%20put%20Notes%20field%20data%20in%20Task%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2468665%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20able%20to%20create%20task%20through%20API%20but%20I%20am%20including%20Notes%20field%20but%20while%20I%20am%20checking%20it%20through%20API%2C%20Notes%20are%20not%20visible%20there.%3CBR%20%2F%3EBelow%20is%20the%20API%3A%3C%2FP%3E%3CP%3EPOST%3A%26nbsp%3B%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgraph.microsoft.com%2Fv1.0%2Fplanner%2Ftasks%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgraph.microsoft.com%2Fv1.0%2Fplanner%2Ftasks%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EBody%3A%26nbsp%3B%3C%2FP%3E%3CDIV%3E%3CDIV%3E%3CSPAN%3E%7B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22planId%22%3C%2FSPAN%3E%3CSPAN%3E%3A%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22XXXXXXXXXXXXXX-%22%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22bucketId%22%3C%2FSPAN%3E%3CSPAN%3E%3A%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22x_XXXXXX%22%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22title%22%3C%2FSPAN%3E%3CSPAN%3E%3A%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22Postman%26nbsp%3BTest%26nbsp%3B13%22%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22dueDateTime%22%3C%2FSPAN%3E%3CSPAN%3E%3A%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%222021-06-15%22%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22priority%22%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3A%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E1%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22importance%22%3C%2FSPAN%3E%3CSPAN%3E%3A%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22high%22%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22description%22%3C%2FSPAN%3E%3CSPAN%3E%3A%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22This%26nbsp%3Bis%26nbsp%3Btest%26nbsp%3Bdescription%22%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22Notes%22%3C%2FSPAN%3E%3CSPAN%3E%3A%26nbsp%3B%3C%2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3C%2FSPAN%3E%3CSPAN%3E%3A%26nbsp%3B%7B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22category5%22%3C%2FSPAN%3E%3CSPAN%3E%3A%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3Etrue%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22category7%22%3C%2FSPAN%3E%3CSPAN%3E%3A%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3Etrue%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%7D%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%7D%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3ENotes%20and%20Priority%20are%20not%20working%20as%20expected%20through%20API.%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3EHow%20can%20I%20resolve%20this%3F%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2468915%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20put%20Notes%20and%20priority%20fields%20data%20in%20Task%20POST%20API%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2468915%22%20slang%3D%22en-US%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1084924%22%20target%3D%22_blank%22%3E%40srrepswal%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EThere%20is%20a%20dedicated%20Planner%20community%20-%20this%20is%20the%20Project%20community%2C%20you%20might%20find%20you%20get%20a%20quicker%20response%20here%20for%20Planner%20queries%20in%20the%20furture%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fplanner%2Fct-p%2FPlanner%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fplanner%2Fct-p%2FPlanner%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20be%20able%20to%20set%20the%20priority%20value%20you%20will%20need%20to%20be%20using%20the%20beta%20API%20and%20not%20version%201.0%20-%20%3CA%20href%3D%22https%3A%2F%2Fgraph.microsoft.com%2Fbeta%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgraph.microsoft.com%2Fbeta%3C%2FA%3E.%20It%20is%20not%20possible%20to%20set%20the%20Notes%20field%20(well%20not%20according%20to%20the%20docs)%3C%2FP%3E%0A%3CP%3EThere%20is%20also%20a%20dedicate%20forum%20for%20the%20Tasks%20Graph%20API%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fanswers%2Ftopics%2Fmicrosoft-graph-tasks-plans.html%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fanswers%2Ftopics%2Fmicrosoft-graph-tasks-plans.html%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHope%20that%20helps%3C%2FP%3E%0A%3CP%3EPaul%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

I am able to create task through API but I am including Notes and priority field but while I am checking it through API, Notes are not visible there.
Below is the API:

POST: https://graph.microsoft.com/v1.0/planner/tasks

Body: 

{
  "planId""XXXXXXXXXXXXXX-",
  "bucketId""x_XXXXXX",
  "title""Postman Test 13",
  "dueDateTime""2021-06-15",
  "priority" : 1,
  "importance""high",
  "description""This is test description",
  "Notes""Test Notes",
  "body": {
        "content""This is test body",
        "contentType""text"
  },
  "Subject""Test Subject",
  "appliedCategories": {
    "category5"true,
    "category7"true
  }
}
For priority I am using valid range of values between 0 and 10.
Notes and Priority are not working as expected through API.
How can I resolve this?
1 Reply
best response confirmed by Paul Mather (MVP)
Solution

Hello @srrepswal,

There is a dedicated Planner community - this is the Project community, you might find you get a quicker response here for Planner queries in the furture: https://techcommunity.microsoft.com/t5/planner/ct-p/Planner 

To be able to set the priority value you will need to be using the beta API and not version 1.0 - https://graph.microsoft.com/beta. It is not possible to set the Notes field (well not according to the docs)

There is also a dedicate forum for the Tasks Graph API: https://docs.microsoft.com/en-us/answers/topics/microsoft-graph-tasks-plans.html 

Hope that helps

Paul