web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Update task details er...
Power Automate
Unanswered

Update task details error - The API operation 'UpdateTaskDetails_V2' is missing required property 'body/checklist/0/title'.

(0) ShareShare
ReportReport
Posted on by 251

Hi all,

 

I've created a flow that takes a form submission, creates a new bucket based on that submission in planner and then copies tasks from a template bucket to the new bucket.

 

The second step i want to add is also copying the details (specifically, the checklist) from the example task to the newly created task, but i am running into an error that i don't know how to address.

 

here is the basic structure of my flow:

Seuadr_1-1625578496537.png

so my form details create a bucket, compose the new bucket ID, list the tasks and filter the array of tasks based on the bucket ID, then there is an apply to each:

Seuadr_2-1625578587520.png

 

this uses the body from the filter array, and gets task details from the ID of the filtered array, composes the checklist out of that specific item and creates a task using a combo of the example tasks and form submissions:

Seuadr_3-1625578654120.png

 

My next step was taking the task's checklist item and doing an update task details:

Seuadr_4-1625578716100.png

 

the ID is from the create a task, the checklist title is from the get task details action (which is the example task with checklist) and then finally the checklist is from get task details action.

now, here is where i run into issues - the flow works fine up to this point - creating the new bucket and the appropriate list of tasks, but, when it goes to update the newly created tasks with the checklists from the example tasks i get the following error:

Seuadr_5-1625578877623.png

 

now, i'm no expert, but, looking at the raw input it appears that it is pulling the task list correctly:

 

 

{
 "host": {
 "connectionReferenceName": "shared_planner_1",
 "operationId": "UpdateTaskDetails_V2"
 },
 "parameters": {
 "id": "VLjK-Y1c_06ylvDedAGY_2QADI3v",
 "body/description": "at 3 week intervals, spot check historical data is recording",
 "body/checklist": [
 {
 "id": "27739",
 "value": {
 "@odata.type": "#microsoft.graph.plannerChecklistItem",
 "isChecked": false,
 "title": "at 3 week intervals, spot check historical data is recording",
 "orderHint": "8585766240YY",
 "lastModifiedDateTime": "2021-06-29T16:07:44.4027259Z",
 "lastModifiedBy": {
 "user": {
 "displayName": null,
 "id": "e07b5f1e-69ac-4630-aed2-796ec4d63dee"
 }
 }
 }
 },
 {
 "id": "27886",
 "value": {
 "@odata.type": "#microsoft.graph.plannerChecklistItem",
 "isChecked": false,
 "title": "at 3 week intervals, spot check performance calcs for reasonable calculation results",
 "orderHint": "8585766240E3",
 "lastModifiedDateTime": "2021-06-29T17:19:44.95805Z",
 "lastModifiedBy": {
 "user": {
 "displayName": null,
 "id": "0cbed744-1166-4bbd-8d59-2f4f0cda4e33"
 }
 }
 }
 },
 {
 "id": "33937",
 "value": {
 "@odata.type": "#microsoft.graph.plannerChecklistItem",
 "isChecked": false,
 "title": "at 3 week intervals, spot check data for accuracy",
 "orderHint": "8585766241338441995P}",
 "lastModifiedDateTime": "2021-06-29T17:18:20.8008771Z",
 "lastModifiedBy": {
 "user": {
 "displayName": null,
 "id": "0cbed744-1166-4bbd-8d59-2f4f0cda4e33"
 }
 }
 }
 }
 ]
 }
}

 

 

 

and this matches the output of the get task details:

 

 

{
 "statusCode": 200,
 "headers": {
 "Transfer-Encoding": "chunked",
 "Vary": "Accept-Encoding",
 "Strict-Transport-Security": "max-age=31536000",
 "request-id": "ba9fd0bc-8b51-46c0-8b37-a5eed00d2269",
 "client-request-id": "ba9fd0bc-8b51-46c0-8b37-a5eed00d2269",
 "x-ms-ags-diagnostic": "{\"ServerInfo\":{\"DataCenter\":\"East US\",\"Slice\":\"E\",\"Ring\":\"5\",\"ScaleUnit\":\"001\",\"RoleInstance\":\"MN1PEPF00002D04\"}}",
 "OData-Version": "4.0",
 "Timing-Allow-Origin": "*",
 "x-ms-apihub-cached-response": "true",
 "Cache-Control": "no-cache",
 "Date": "Tue, 06 Jul 2021 13:27:19 GMT",
 "ETag": "W/\"JzEtVGFza0RldGFpbHMgQEBAQEBAQEBAQEBAQEBAcCc=\"",
 "Content-Type": "application/json",
 "Content-Length": "1889"
 },
 "body": {
 "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#planner/tasks('4fUcD8RJiUydSoN2-zMlGmQAKCVe')/details/$entity",
 "@odata.etag": "W/\"JzEtVGFza0RldGFpbHMgQEBAQEBAQEBAQEBAQEBAcCc=\"",
 "description": "",
 "previewType": "checklist",
 "id": "4fUcD8RJiUydSoN2-zMlGmQAKCVe",
 "references": [],
 "checklist": [
 {
 "id": "27739",
 "value": {
 "@odata.type": "#microsoft.graph.plannerChecklistItem",
 "isChecked": false,
 "title": "at 3 week intervals, spot check historical data is recording",
 "orderHint": "8585766240YY",
 "lastModifiedDateTime": "2021-06-29T16:07:44.4027259Z",
 "lastModifiedBy": {
 "user": {
 "displayName": null,
 "id": "e07b5f1e-69ac-4630-aed2-796ec4d63dee"
 }
 }
 }
 },
 {
 "id": "27886",
 "value": {
 "@odata.type": "#microsoft.graph.plannerChecklistItem",
 "isChecked": false,
 "title": "at 3 week intervals, spot check performance calcs for reasonable calculation results",
 "orderHint": "8585766240E3",
 "lastModifiedDateTime": "2021-06-29T17:19:44.95805Z",
 "lastModifiedBy": {
 "user": {
 "displayName": null,
 "id": "0cbed744-1166-4bbd-8d59-2f4f0cda4e33"
 }
 }
 }
 },
 {
 "id": "33937",
 "value": {
 "@odata.type": "#microsoft.graph.plannerChecklistItem",
 "isChecked": false,
 "title": "at 3 week intervals, spot check data for accuracy",
 "orderHint": "8585766241338441995P}",
 "lastModifiedDateTime": "2021-06-29T17:18:20.8008771Z",
 "lastModifiedBy": {
 "user": {
 "displayName": null,
 "id": "0cbed744-1166-4bbd-8d59-2f4f0cda4e33"
 }
 }
 }
 }
 ]
 }
}

 

 

 

when i look at the contents of the update task details i don't really understand where to edit or add the missing value(s):

Seuadr_6-1625579047240.png

i've tried both with, and without the references collection:

Seuadr_7-1625579106441.png

not sure what needs to be done to correct the issue



 

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @Seuadr,

     

    As far as I am aware checklist item ids need to be unique. Since you are reusing the ids from the original task this update task details action will probably fail. Can you try and use different ids for the checklist items?

  • Verified answer
    Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @Seuadr,

     

    Just found a workaround. You could use a select action and generate a new id with a rand function.

     

    You can use the output of that select action for your checklistitem array field.

     

    {
     "id": @{replace(replace(replace(item()?['id'], '27739', string(rand(0, 1000000))), '27886', string(rand(0, 1000000))), '33937', string(rand(0, 1000000)))},
     "title": @{item()?['value/title']},
     "isChecked": @{item()?['value/isChecked']}
    }

     

    generatenewchecklistitemid.png

  • Seuadr Profile Picture
    251 on at

    ah, i had not thought about the ID needing to be unique - i was thinking i needed to reuse the ID so that it would collect the right task list item.

     

    i'll give that a go! thanks!

     

  • Seuadr Profile Picture
    251 on at

    this worked perfectly, thanks!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard