cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Slimy
New Member

Planner Task to reset checklist

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:

Slimy_0-1663754380970.png

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

1 REPLY 1
Expiscornovus
Super User
Super User

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)}"

 

checklist_example_planner.png

 

 



Happy to help out! 🙂

Interested in more #PowerAutomate #SharePointOnline or #PowerVirtualAgents content?
Visit my blog, Subscribe to my YouTube channel or Follow me on Twitter


Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (2,917)