cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bbpa
Frequent Visitor

Error copying checklist from Planner into newly created Task

The logic is straightforward in that I use the "Get Task Details" action to get the details for my template task (I filter the tasks from Get Tasks and know it's working properly) and then attempt to set the Checklist array as the checklist in my newly created task using Update Task Details.

bbpa_0-1614104372833.png

bbpa_1-1614104409147.png

 

The error I receive is "The 'inputs.parameters' of workflow operation 'Update_task_details' of type 'OpenApiConnection' is not valid. Error details: The API operation 'UpdateTaskDetails_V2' is missing required property 'body/checklist/0/title'."

 

The action seems to be looking for a title property in the wrong place. 

 

Has anybody been able to copy checklists in Planner successfully?

 

 

Here is the Checklist object

 

[
  {
    "id": "10011",
    "value": {
      "@odata.type": "#microsoft.graph.plannerChecklistItem",
      "isChecked": false,
      "title": "Executing: SME content received: Content, quiz questions/answers, etc. ",
      "orderHint": "858606854jW",
      "lastModifiedDateTime": "2021-02-23T15:55:14.1311887Z",
      "lastModifiedBy": {
        "user": {
          "displayName": null,
          "id": "aac56acb-2866-464c-867b-2882ca76f6e8"
        }
      }
    }
  },
  {
    "id": "20794",
    "value": {
      "@odata.type": "#microsoft.graph.plannerChecklistItem",
      "isChecked": false,
      "title": "Closing: Conducted after-action review with project team, share lessons learned",
      "orderHint": "8586068544;",
      "lastModifiedDateTime": "2021-02-23T15:55:14.1311887Z",
      "lastModifiedBy": {
        "user": {
          "displayName": null,
          "id": "aac56acb-2866-464c-867b-2882ca76f6e8"
        }
      }
    }
  },
  {
    "id": "23637",
    "value": {
      "@odata.type": "#microsoft.graph.plannerChecklistItem",
      "isChecked": false,
      "title": "Executing: Final review completed: show stoppers, QA, bias, legal (when needed)",
      "orderHint": "858606854=@",
      "lastModifiedDateTime": "2021-02-23T15:55:14.1311887Z",
      "lastModifiedBy": {
        "user": {
          "displayName": null,
          "id": "aac56acb-2866-464c-867b-2882ca76f6e8"
        }
      }
    }
  },
  {
    "id": "25322",
    "value": {
      "@odata.type": "#microsoft.graph.plannerChecklistItem",
      "isChecked": false,
      "title": "Executing: Delivered/Assigned learning products, including knowledge checks and surveys",
      "orderHint": "8586068548p6",
      "lastModifiedDateTime": "2021-02-23T15:55:14.1311887Z",
      "lastModifiedBy": {
        "user": {
          "displayName": null,
          "id": "aac56acb-2866-464c-867b-2882ca76f6e8"
        }
      }
    }
  },
  {
    "id": "33505",
    "value": {
      "@odata.type": "#microsoft.graph.plannerChecklistItem",
      "isChecked": false,
      "title": "Executing: Conducted feedback reviews of learning products",
      "orderHint": "858606854Ek",
      "lastModifiedDateTime": "2021-02-23T15:55:14.1311887Z",
      "lastModifiedBy": {
        "user": {
          "displayName": null,
          "id": "aac56acb-2866-464c-867b-2882ca76f6e8"
        }
      }
    }
  },
  {
    "id": "34834",
    "value": {
      "@odata.type": "#microsoft.graph.plannerChecklistItem",
      "isChecked": false,
      "title": "Planning: Communication plan, Stakeholder engagement",
      "orderHint": "8586068552QF",
      "lastModifiedDateTime": "2021-02-23T15:55:14.1311887Z",
      "lastModifiedBy": {
        "user": {
          "displayName": null,
          "id": "aac56acb-2866-464c-867b-2882ca76f6e8"
        }
      }
    }
  },
  {
    "id": "35231",
    "value": {
      "@odata.type": "#microsoft.graph.plannerChecklistItem",
      "isChecked": false,
      "title": "Closing: Learning teammates document project outcomes to goals and yearly performance ",
      "orderHint": "858604B",
      "lastModifiedDateTime": "2021-02-23T15:55:14.1311887Z",
      "lastModifiedBy": {
        "user": {
          "displayName": null,
          "id": "aac56acb-2866-464c-867b-2882ca76f6e8"
        }
      }
    }
  },
  {
    "id": "38385",
    "value": {
      "@odata.type": "#microsoft.graph.plannerChecklistItem",
      "isChecked": false,
      "title": "Initiating: Identified Goals/Objectives",
      "orderHint": "8586068552|W",
      "lastModifiedDateTime": "2021-02-23T15:55:14.1311887Z",
      "lastModifiedBy": {
        "user": {
          "displayName": null,
          "id": "aac56acb-2866-464c-867b-2882ca76f6e8"
        }
      }
    }
  },
  {
    "id": "43160",
    "value": {
      "@odata.type": "#microsoft.graph.plannerChecklistItem",
      "isChecked": false,
      "title": "Initiating: Identified Decision Maker and SMEs",
      "orderHint": "ZO",
      "lastModifiedDateTime": "2021-02-23T15:55:14.1311887Z",
      "lastModifiedBy": {
        "user": {
          "displayName": null,
          "id": "aac56acb-2866-464c-867b-2882ca76f6e8"
        }
      }
    }
  },
  {
    "id": "51873",
    "value": {
      "@odata.type": "#microsoft.graph.plannerChecklistItem",
      "isChecked": false,
      "title": "Monitoring: Reported attendance, completions, survey results",
      "orderHint": "8586068547t4",
      "lastModifiedDateTime": "2021-02-23T15:55:14.1311887Z",
      "lastModifiedBy": {
        "user": {
          "displayName": null,
          "id": "aac56acb-2866-464c-867b-2882ca76f6e8"
        }
      }
    }
  },
  {
    "id": "53203",
    "value": {
      "@odata.type": "#microsoft.graph.plannerChecklistItem",
      "isChecked": false,
      "title": "Monitoring: Analyzed for trends in learning, look for gaps or needed boosters",
      "orderHint": "8586068546n",
      "lastModifiedDateTime": "2021-02-23T15:55:14.1311887Z",
      "lastModifiedBy": {
        "user": {
          "displayName": null,
          "id": "aac56acb-2866-464c-867b-2882ca76f6e8"
        }
      }
    }
  },
  {
    "id": "61538",
    "value": {
      "@odata.type": "#microsoft.graph.plannerChecklistItem",
      "isChecked": false,
      "title": "Executing: Sent appropriate communication/invites ",
      "orderHint": "858606854:%",
      "lastModifiedDateTime": "2021-02-23T15:55:14.1311887Z",
      "lastModifiedBy": {
        "user": {
          "displayName": null,
          "id": "aac56acb-2866-464c-867b-2882ca76f6e8"
        }
      }
    }
  },
  {
    "id": "61599",
    "value": {
      "@odata.type": "#microsoft.graph.plannerChecklistItem",
      "isChecked": false,
      "title": "Planning: Determined metrics to be measured and how/when the project ends",
      "orderHint": "858606854z:",
      "lastModifiedDateTime": "2021-02-23T15:55:14.1311887Z",
      "lastModifiedBy": {
        "user": {
          "displayName": null,
          "id": "aac56acb-2866-464c-867b-2882ca76f6e8"
        }
      }
    }
  },
  {
    "id": "70000",
    "value": {
      "@odata.type": "#microsoft.graph.plannerChecklistItem",
      "isChecked": false,
      "title": "Planning: Established MS Team structure, file storage, daily comm, live meeting cadence",
      "orderHint": "8586068551w<",
      "lastModifiedDateTime": "2021-02-23T15:55:14.1311887Z",
      "lastModifiedBy": {
        "user": {
          "displayName": null,
          "id": "aac56acb-2866-464c-867b-2882ca76f6e8"
        }
      }
    }
  },
  {
    "id": "71514",
    "value": {
      "@odata.type": "#microsoft.graph.plannerChecklistItem",
      "isChecked": false,
      "title": "Planning: Design Plan approved, list deliverables",
      "orderHint": "8586068552c5",
      "lastModifiedDateTime": "2021-02-23T15:55:14.1311887Z",
      "lastModifiedBy": {
        "user": {
          "displayName": null,
          "id": "aac56acb-2866-464c-867b-2882ca76f6e8"
        }
      }
    }
  },
  {
    "id": "73063",
    "value": {
      "@odata.type": "#microsoft.graph.plannerChecklistItem",
      "isChecked": false,
      "title": "Executing: Produced learning products: elearning, live content/platform, videos, surveys, etc.",
      "orderHint": "858606854U%",
      "lastModifiedDateTime": "2021-02-23T15:55:14.1311887Z",
      "lastModifiedBy": {
        "user": {
          "displayName": null,
          "id": "aac56acb-2866-464c-867b-2882ca76f6e8"
        }
      }
    }
  },
  {
    "id": "74342",
    "value": {
      "@odata.type": "#microsoft.graph.plannerChecklistItem",
      "isChecked": false,
      "title": "Planning: Learning Plan proposal approved",
      "orderHint": "8586068552s7",
      "lastModifiedDateTime": "2021-02-23T15:55:14.1311887Z",
      "lastModifiedBy": {
        "user": {
          "displayName": null,
          "id": "aac56acb-2866-464c-867b-2882ca76f6e8"
        }
      }
    }
  },
  {
    "id": "79138",
    "value": {
      "@odata.type": "#microsoft.graph.plannerChecklistItem",
      "isChecked": false,
      "title": "Initiating: Assigned Learning teammates (TTM/ID)",
      "orderHint": "uh",
      "lastModifiedDateTime": "2021-02-23T15:55:14.1311887Z",
      "lastModifiedBy": {
        "user": {
          "displayName": null,
          "id": "aac56acb-2866-464c-867b-2882ca76f6e8"
        }
      }
    }
  },
  {
    "id": "80380",
    "value": {
      "@odata.type": "#microsoft.graph.plannerChecklistItem",
      "isChecked": false,
      "title": "Initiating: Stakeholder Interviews and Existing Content",
      "orderHint": "@;",
      "lastModifiedDateTime": "2021-02-23T15:55:14.1311887Z",
      "lastModifiedBy": {
        "user": {
          "displayName": null,
          "id": "aac56acb-2866-464c-867b-2882ca76f6e8"
        }
      }
    }
  },
  {
    "id": "97838",
    "value": {
      "@odata.type": "#microsoft.graph.plannerChecklistItem",
      "isChecked": false,
      "title": "Closing: Analyzed metrics for business value creation",
      "orderHint": "8586068542S",
      "lastModifiedDateTime": "2021-02-23T15:55:14.1311887Z",
      "lastModifiedBy": {
        "user": {
          "displayName": null,
          "id": "aac56acb-2866-464c-867b-2882ca76f6e8"
        }
      }
    }
  }
]
1 ACCEPTED SOLUTION

Accepted Solutions
bbpa
Frequent Visitor

The error message led me to rebuilding the JSON in a format that the update action would play nice with. 

bbpa_1-1614887531839.png

 

bbpa_0-1614115144839.png

bbpa_2-1614887549823.png

bbpa_1-1614115173018.png

bbpa_4-1614887681312.png

bbpa_5-1614887734254.png

 

bbpa_3-1614115192951.png

 

This is driven from a MS Form submission which is where the Title comes from in "Create a task 2" also the References Resource in "Update Task Details"

 

One thing to note is I'm not sure how to keep the checklist in the proper order... even if the source template is created in a certain order the orderHint value doesn't seem to reference it

View solution in original post

7 REPLIES 7
bbpa
Frequent Visitor

The error message led me to rebuilding the JSON in a format that the update action would play nice with. 

bbpa_1-1614887531839.png

 

bbpa_0-1614115144839.png

bbpa_2-1614887549823.png

bbpa_1-1614115173018.png

bbpa_4-1614887681312.png

bbpa_5-1614887734254.png

 

bbpa_3-1614115192951.png

 

This is driven from a MS Form submission which is where the Title comes from in "Create a task 2" also the References Resource in "Update Task Details"

 

One thing to note is I'm not sure how to keep the checklist in the proper order... even if the source template is created in a certain order the orderHint value doesn't seem to reference it

v-litu-msft
Community Support
Community Support

Hi @bbpa,

 

Has your problem been solved?
If your problem has been solved, You could go ahead and mark the post as solved by clicking “Accept as Solution” so that this thread will be marked for other users to easily identify!

Best Regards,
Community Support Team _ Lin Tu

edugrt
New Member

Hello, @bbpa 

 

This is exacly the problem I am facing right now. I understand you shared your solution but I cannot reproduce it because a few steps are missing from the screenshots you've shared (which I am not sure they are relevant anyway) and I cannot see the full schema from the parce JSON.

 

Would you share those with us, please?

 

Thanks!

I updated my screenshots with the extra steps (some are important) and here's the JSON schema... I got it by examining the data from the Checklist object 

 

{
    "type""object",
    "properties": {
        "id": {
            "type""string"
        },
        "title": {
            "type""string"
        },
        "value": {
            "type""object",
            "properties": {
                "@@odata.type": {
                    "type""string"
                },
                "lastModifiedDateTime": {
                    "type""string"
                },
                "lastModifiedBy": {
                    "type""object",
                    "properties": {
                        "user": {
                            "type""object",
                            "properties": {
                                "displayName": {},
                                "id": {
                                    "type""string"
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

Hello @bbpa ,

 

While I'm using 'Update Task Details' I'm getting the following error:

 

The request is invalid:
An unexpected 'StartObject' node was found for property named 'lastModifiedBy' when reading from the JSON reader. A 'PrimitiveValue' node was expected.

 

Here is the raw input:

 

{
     "body": {
        "description": "2.12.1.3.2",
        "checklist": {
            "28451": {
                "@odata.type": "#microsoft.graph.plannerChecklistItem",
                "isChecked": false,
                "title": "Test",
                "orderHint": "8585863207722652781PM",
                "lastModifiedDateTime": "2021-03-09T10:36:13.2279249Z",
                "lastModifiedBy": {
                    "user": {
                        "displayName": null,
                        "id": "3d8364eb-8e45-474a-8758-2c6d2bb0033f"
                    }
                }
            }
        }
    }
}

 

My Flow was built straight forward, with no customs fields other than 'Dynamic Contents' so I can't understand why I'm receiving this error. Could you bring me some light? Thank you in advance.

It looks like maybe you're trying to pass in a value for the lastModifiedBy field? Perhaps leaving that out of your action would help

Hello @bbpa, thanks for your response.

 

I share my flow below. Actually, I'm not trying to pass any value to this field.

 

lnoman_1-1618422994521.png

If I try to put on checklist the following, it returns the error: The execution of template action 'Apply_to_each_2' failed: the result of the evaluation of 'foreach' expression '@body('Get_task_details_from_Template_Task')?['checklist']' is of type 'Object'. The result must be a valid array.

lnoman_2-1618423096802.png

 

Any sugestions? Thank you.

Helpful resources

Announcements

Community will be READ ONLY July 16th, 5p PDT -July 22nd

Dear Community Members,   We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd.   During this period, members will not be able to Kudo, Comment, or Reply to any posts.   On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities.   What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!

Check Out | 2024 Release Wave 2 Plans for Microsoft Dynamics 365 and Microsoft Power Platform

On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners.    The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights.    Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.    

Summer of Solutions | Week 3 Results | Win free tickets to the Power Platform Conference

We are excited to announce the Summer of Solutions Challenge!    This challenge is kicking off on Monday, June 17th and will run for (4) weeks.  The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions to as many questions as you can. Answers can be provided in all the communities.    Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”)   - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024   Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods.  You must enter into each weekly Entry Period separately.   How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different.    Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers.  At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing.  Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner.  A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random.  Individuals will be contacted before the announcement with the opportunity to claim or deny the prize.  Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners.   Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event.   ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE**   Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Community MembersNumber SolutionsSuper UsersNumber Solutions Deenuji 9 @NathanAlvares24  17 @Anil_g  7 @ManishSolanki  13 @eetuRobo  5 @David_MA  10 @VishnuReddy1997  5 @SpongYe  9JhonatanOB19932 (tie) @Nived_Nambiar  8 @maltie  2 (tie)   @PA-Noob  2 (tie)   @LukeMcG  2 (tie)   @tgut03  2 (tie)       Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 2: Community MembersSolutionsSuper UsersSolutionsPower Automate  @Deenuji  12@ManishSolanki 19 @Anil_g  10 @NathanAlvares24  17 @VishnuReddy1997  6 @Expiscornovus  10 @Tjan  5 @Nived_Nambiar  10 @eetuRobo  3 @SudeepGhatakNZ 8     Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 3:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji32ManishSolanki55VishnuReddy199724NathanAlvares2444Anil_g22SudeepGhatakNZ40eetuRobo18Nived_Nambiar28Tjan8David_MA22  

Updates to Transitions in the Power Platform Communities

We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for.  We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer.   Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together.   Here's to new beginnings and endless possibilities!   If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport.   To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages

Users online (4,338)