Hi,
I currently have a flow that creates a task in planner every Monday. The task it creates is a simple checklist so that I know that myself or someone in my team has changed the drives for the day:
What I would like to do, instead of creating a new task every Monday. Instead to have the flow update the current checklist so that all the items are marked as incomplete?
I would also like to know, how to get the 'show on card' box ticked for the checklist when creating the task
Many thanks
Hi @Slimy,
You could use the Update plannertaskdetails method in a PATCH request within a Send an HTTP request (Office 365 groups connector) action for this.
Below is an example.
I used two checklist items in this example. Be sure to add three more and replace the id 12897 and 32480 by the 5 ids of your checklist items
{
"previewType": "checklist",
"checklist": {
"12897":{
"@odata.type": "microsoft.graph.plannerChecklistItem",
"isChecked": false
},
"32480":{
"@odata.type": "microsoft.graph.plannerChecklistItem",
"isChecked": false,
}
}
}
For the E-Tag retrieval I used a GET request and in the custom headers of the second request I used an expression to reuse the E-Tag value
If-Match: "@{slice(body('Send_an_HTTP_request_-_GET')['@odata.etag'], 3, -1)}"
User | Count |
---|---|
27 | |
16 | |
15 | |
12 | |
10 |
User | Count |
---|---|
43 | |
29 | |
28 | |
24 | |
23 |