cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Getting Planner Checklists in flow

Hey guys I have been just made aware that I need to be able to get the Checklists that come when another user creates a new Planner Task. 

I have a flow that sends an email that gets printed but when my team put the phone number and pickup time in the checklist area there is no way to get this information in the email.

When I use Get Details all that is shown is the Title and Description. 


Any help would be very appreciated 

1 ACCEPTED SOLUTION

Accepted Solutions
v-yamao-msft
Community Support
Community Support

Hi @Anonymous ,

 

I have made a test and I found that checklist could not be returned using a dynamic content directly.

 

There is similar request on Flow Ideas Forum, please feel free vote the idea at here:

https://powerusers.microsoft.com/t5/Flow-Ideas/Planner-get-more-details-from-a-task-in-planner-e-g-Comments/idi-p/142899

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

17 REPLIES 17
v-yamao-msft
Community Support
Community Support

Hi @Anonymous ,

 

I have made a test and I found that checklist could not be returned using a dynamic content directly.

 

There is similar request on Flow Ideas Forum, please feel free vote the idea at here:

https://powerusers.microsoft.com/t5/Flow-Ideas/Planner-get-more-details-from-a-task-in-planner-e-g-Comments/idi-p/142899

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
shtryler
Advocate I
Advocate I

++EDIT: This Post in now obsolete. The "Get Task Details"-Action does now offfer the Checklist as an iterable Array in the dynamic content. So almost all of the steps I described below are no longer necessary.++

 

I struggled with a similar task for a few days, but in the end i managed to extract all the information from the tasks and the checklist items with the help of this weird trick 😉: http://johnliu.net/blog/2017/11/foreach-property-in-microsoftflow-json-with-xpath-microblog

 

The process does need a few steps but in the end it isn't too comlicated.

You start by getting the task details and parsing the result in JSON:

Capture.JPG

Parse JSON: (Get all the data from the taskdetails, way more than the dynamic content offers)

Content: body('Get_task_details')?['body']

(You can generate the schema from a sample task body or just use mine: https://pastebin.com/Y0ddkS9w)

 

Parse JSON checklist: (Seperate the checklist JSON from the task data for easyer handling)

Content: body('Parse_JSON')?['checklist']

(Schema can also be created from a sample checklist item, or use this: https://pastebin.com/4eNTtJ67)

 

The problem is that the checklist items are not actually called "checklistItem" in the raw JSON but are individually named with their id. This is why we need to do the trick from the post mentioned above, where we turn the JSON into XML, get the checklist item id's from the XML, and then parse the JSON again with the id.

Capture2.JPG

Compose JSON checklist root element: (Add a root Element, necessary for proper XML)

Inputs: {"root": body(Parse_JSON_checklist'')}

 

Compose JSON as XML nodeset:

Inputs: xpath(xml(outputs('Compose_JSON_checklist_root_element')), '/root/*')

 

Select array of checklist item ids from xml

From: outputs('Compose_JSON_as_XML_nodeset')

Map: xpath(item(), 'name(/*)')

 

Now we have an iterable array of the checklist item id's (or something resembling them) with wich we can proceed to parse the JSON data of each checklist item.

Capture3.JPG

Apply to each checklist item:

Output('Select_array_of_checklist_item_ids_from_xml')

 

Compose checklist item id: (the id's com back a bit scrambled, this can be fixed with an easy string operation)

Input: substring(replace(items('Apply_to_each_checklist_item'), '_'''), 4, 5)

 

Parse JSON checklist item: (Finally! This operation gives us all the data of the current checklist item)

Content: body('Parse_JSON_Checklist')?[outputs('Compose_checklist_item_id')])

(I guess the schema shuld be clear by now, but just in case 😉: https://pastebin.com/C6C19VYw)

 

The "Parse JSON checklist item" now gives you everything you need as dynamic content.

Hope this helps 😊

This is really helpful but your final schame url is no longr valid - https://pastebin.com/C6C19VYw

any chance you still have this available?

Thanks.

Never mind - worked it out myself.

Really excellent solution. I wouldn't have been able to achieve this without your post so thanks!

{
    "type""object",
    "properties": {
        "@@odata.type": {
            "type""string"
         },
        "isChecked": {
                "type""boolean"
        },
        "title": {
                "type""string"
        }
    }
}
    

Hi @shtryler ,

 

You mentioned in your edit that the "Get Task Details"-Action does now offer the Checklist as an iterable Array in the dynamic content.

 

If I use the 'Get Task Details' action, it only returns the 'description' and the 'ID'.

 

If I call the GET details for Planner Task using the Graph API, it still seem to be returning the checklist items as objects (on both V1.0 and beta)?

 

Can you advise on how I access the iterable array in my flow?

 

Many thanks.

shtryler
Advocate I
Advocate I

Hi @DoowopDobbo,

 

when I add for example a new Apply-to-each-Eleemnt i can choose from the List of dynamic content you can see below. ("Checklist - The Collection of checklist items on the task" is the iterable array in this case).

Untitled.png

Sadly I don't think I can help you if these elements don't appear in your case. For me, the additional dynamic content from the "Get task details"-Action just appeared one day.

 

Best wishes

Hi @shtryler 

 

Many thanks for the quick reply. Unfortunately, the dynamic content doesn't appear for me. Maybe it's tenant specific and we will hopefully get 'upgraded' at some point.

 

Thanks again for your help.

Hi @shtryler ,

After speaking with 2nd tier MS support, I now have the additional dynamic content. Your screenshot was really helpful in achieving this, so thank you.


Could you give an example of how you are using the new 'checklist' token in the above scenario as I'm having trouble getting it to work. The problem seems to be that the 'OrderHints' being copied from the original task as part of the Checklist array are 'not valid'.

 

In the original method you described (which I have working, so thank you again!), the 'orderHint' was set  as " !"

 

Many thanks in anticipation that you might be able to help.

 

Screenshot 2020-12-11 at 17.52.05.png

 

Screenshot 2020-12-11 at 17.45.15.png

Screenshot 2020-12-11 at 17.46.36.png

DoowopDobbo
Frequent Visitor

For anyone who might find it useful, here was the solution to the problem using the new tokens that have recently become available.

 

The only problem now is that the checklist items are not copied from the original task in the original order.

 

If anyone has any advice on how this can be achieved, it would be greatly appreciated.

 

Screenshot 2020-12-23 at 13.40.20.png

Hi @DoowopDobbo ,

 

Your new solution it is just what I need, but I couldn't be able to test because I'm receiving the following 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.

 

How can I convert the 'Dynamic Content' Checklists (type object) from Template Task to an array? Thank you in advance.

Hi, this looks exactly like what I need, however the Schema seems to be erroring with the below. Any idea how I can get around this?

Capture.JPG

Matthew1900
Frequent Visitor

Hi All - thanks so much for everyone's brilliance in developing this flow! 

 

Quick question - I receive an error at the Get Task Details step, with the following output.

 

If anyone would be willing to weigh in with guidance on how I can fix the error, I would be extremely appreciated!

 

Thanks so much,

Matt

 

  "statusCode"400,
    "headers": {
        "Connection""close",
        "Date""Wed, 05 Jan 2022 03:08:52 GMT",
        "Content-Length""324",
        "Content-Type""text/html; charset=us-ascii"
    },
    "body""<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\"\"http://www.w3.org/TR/html4/strict.dtd\">\r\n<HTML><HEAD><TITLE>Bad Request</TITLE>\r\n<META HTTP-EQUIV=\"Content-Type\" Content=\"text/html; charset=us-ascii\"></HEAD>\r\n<BODY><h2>Bad Request - Invalid URL</h2>\r\n<hr><p>HTTP Error 400. The request URL is invalid.</p>\r\n</BODY></HTML>\r\n"

Hello - Thanks so much for this super helpful information.

 

Is there a way to trigger this flow on a daily basis to update all checklist items, and not just based on the trigger of "when task is completed"? 

 

When I attempted this myself, I used List Buckets>List Tasks>Get Task Details (using value from List Tasks), but then it automatically populated a "for each" function and I wasn't able to select the body value from Get Task Details in the subsequent Parse JSON step.

 

Matthew1900_1-1641494888583.png

 

 

Matthew1900_0-1641494864519.png

 

 

Any guidance would be appreciated. Thank you!

 

 

Matthew1900
Frequent Visitor

@shtryler @DoowopDobbo @MSPowerApps @mspowerautomate 

 

Hi All - just wondering if anyone had thoughts on creating a loop that updates checklist details and refreshes an Excel document, as opposed to only retrieving information for one particular task based on a "complete" or "assign" or "create" trigger.

 

Thank you!

Matt

BeatriceL123
Regular Visitor

Can someone please help me with a similar issue: 

 

When I add action "update task details" to create checklist items (from Excel) in my planner (via Power Automate) for some reason, the newly created checklist items are being put into ALL my tasks. I don't want the checklist to show up in all my tasks. I have 5 tasks and want to update 2 tasks with checklists (checklist is different for each task/never the same). 

 

Here's is the Excel (table 1/tab 1) - used for "create a planner task" - these are my 5 tasks I want to drop into teams planner via power automate. I am able to create a flow and successfully added the below into my to do bucket in planners. so not issue here.

BeatriceL123_1-1659799668260.png

 

The issue is when I try to add the checklist using action "Update task details"

My Excel tab 2 (table 2) I need checklist 1-3 added to a task "call hotel" then I need 4-6 added to another task "create NF event" 

BeatriceL123_2-1659799668565.png

 

The flow I am running does not have an error message upon test. However, the output/final result is NOT what i want.

 

Issue: checklist 1-6 is appearing on task 2-5 but not Task 1 (see table 1 rows 3-6). This is obviously not what I want. What I want is checklist 1-3 added to a task "call hotel" and checklist 4-6 added to task "create NF event" 

 

My output is that checklist 1-3 is going to the right task (yay). But checklist 1-6 is showing up on 4 out of 5 task. So the final product is 10% right and 90% wrong. 

Planner: circle is right (I added three checklist items to "Call Hotel" but all the rest of my tasks gained 6 checklist items and THAT IS WRONG. There must be some type of loop causing it or I am not directing it properly - either way user error. I'm new to Power Automate.

BeatriceL123_3-1659799668569.png

 

Flow details

The expression used below is: 

if(equals(items('Apply_to_each')?['Completed'],'FALSE'),true,false)

BeatriceL123_4-1659799668784.png

 

 

BeatriceL123_5-1659799668779.png

 

Can someone with more experience please help me figure out what I'm doing wrong? 

Thank you so much

 

 

 

 

Hello,

 

Did you ever get answer for this? I am stuck in the same place. 

Hi @DoowopDobbo ,

 

Did you get around the order issue? I have the same problem. I'm trying to copy a task with checklist, but the order of the checklist items is wrong.

Helpful resources

Announcements

Take a short Community User Survey | Help us make your experience better!

To ensure that we are providing the best possible experience for Community members, we want to hear from you!    We value your feedback! As part of our commitment to enhancing your experience, we invite you to participate in a brief 15-question survey. Your insights will help us improve our services and better serve the community.    👉Community User Survey    Thank you for being an essential part of our community!    Power Platform Engagement Team  

Tuesday Tip | How to Get Community Support

It's time for another Tuesday Tip, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.       This Week: All About Community Support Whether you're a seasoned community veteran or just getting started, you may need a bit of help from time to time! If you need to share feedback with the Community Engagement team about the community or are looking for ways we can assist you with user groups, events, or something else, Community Support is the place to start.   Community Support is part of every one of our communities, accessible to all our community members.   Within each community's Community Support page, you'll find three distinct areas, each with a different focus to help you when you need support from us most. Power Apps: https://powerusers.microsoft.com/t5/Community-Support/ct-p/pa_community_support Power Automate: https://powerusers.microsoft.com/t5/Community-Support/ct-p/mpa_community_support Power Pages: https://powerusers.microsoft.com/t5/Community-Support/ct-p/mpp_community_support Copilot Studio: https://powerusers.microsoft.com/t5/Community-Support/ct-p/pva_community-support   Community Support Form If you need more assistance, you can reach out to the Community Team via the Community support form. Choose the type of support you require and fill in the form accordingly. We will respond to you promptly.    Thank you for being an active part of our community. Your contributions make a difference!   Best Regards, The Community Management Team

Community Roundup: A Look Back at Our Last 10 Tuesday Tips

As we continue to grow and learn together, it's important to reflect on the valuable insights we've shared. For today's #TuesdayTip, we're excited to take a moment to look back at the last 10 tips we've shared in case you missed any or want to revisit them. Thanks for your incredible support for this series--we're so glad it was able to help so many of you navigate your community experience!   Getting Started in the Community An overview of everything you need to know about navigating the community on one page!  Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Community Ranks and YOU Have you ever wondered how your fellow community members ascend the ranks within our community? We explain everything about ranks and how to achieve points so you can climb up in the rankings! Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Powering Up Your Community Profile Your Community User Profile is how the Community knows you--so it's essential that it works the way you need it to! From changing your username to updating contact information, this Knowledge Base Article is your best resource for powering up your profile. Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Community Blogs--A Great Place to Start There's so much you'll discover in the Community Blogs, and we hope you'll check them out today!  Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Unlocking Community Achievements and Earning Badges Across the Communities, you'll see badges on users profile that recognize and reward their engagement and contributions. Check out some details on Community badges--and find out more in the detailed link at the end of the article! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Blogging in the Community Interested in blogging? Everything you need to know on writing blogs in our four communities! Get started blogging across the Power Platform communities today! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Subscriptions & Notifications We don't want you to miss a thing in the community! Read all about how to subscribe to sections of our forums and how to setup your notifications! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Getting Started with Private Messages & Macros Do you want to enhance your communication in the Community and streamline your interactions? One of the best ways to do this is to ensure you are using Private Messaging--and the ever-handy macros that are available to you as a Community member! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Community User Groups Learn everything about being part of, starting, or leading a User Group in the Power Platform Community. Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Update Your Community Profile Today! Keep your community profile up to date which is essential for staying connected and engaged with the community. Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Thank you for being an integral part of our journey.   Here's to many more Tuesday Tips as we pave the way for a brighter, more connected future! As always, watch the News & Announcements for the next set of tips, coming soon!    

Calling all User Group Leaders and Super Users! Mark Your Calendars for the next Community Ambassador Call on May 9th!

This month's Community Ambassador call is on May 9th at 9a & 3p PDT. Please keep an eye out in your private messages and Teams channels for your invitation. There are lots of exciting updates coming to the Community, and we have some exclusive opportunities to share with you! As always, we'll also review regular updates for User Groups, Super Users, and share general information about what's going on in the Community.     Be sure to register & we hope to see all of you there!

April 2024 Community Newsletter

We're pleased to share the April Community Newsletter, where we highlight the latest news, product releases, upcoming events, and the amazing work of our outstanding Community members.   If you're new to the Community, please make sure to follow the latest News & Announcements and check out the Community on LinkedIn as well! It's the best way to stay up-to-date with all the news from across Microsoft Power Platform and beyond.    COMMUNITY HIGHLIGHTS   Check out the most active community members of the last month! These hardworking members are posting regularly, answering questions, kudos, and providing top solutions in their communities. We are so thankful for each of you--keep up the great work! If you hope to see your name here next month, follow these awesome community members to see what they do!   Power AppsPower AutomateCopilot StudioPower PagesWarrenBelzDeenujialexander2523ragavanrajanLaurensMManishSolankiMattJimisonLucas001AmikcapuanodanilostephenrobertOliverRodriguestimlAndrewJManikandanSFubarmmbr1606VishnuReddy1997theMacResolutionsVishalJhaveriVictorIvanidzejsrandhawahagrua33ikExpiscornovusFGuerrero1PowerAddictgulshankhuranaANBExpiscornovusprathyooSpongYeNived_Nambiardeeksha15795apangelesGochixgrantjenkinsvasu24Mfon   LATEST NEWS   Business Applications Launch Event - On Demand In case you missed the Business Applications Launch Event, you can now catch up on all the announcements and watch the entire event on-demand inside Charles Lamanna's latest cloud blog.   This is your one stop shop for all the latest Copilot features across Power Platform and #Dynamics365, including first-hand looks at how companies such as Lenovo, Sonepar, Ford Motor Company, Omnicom and more are using these new capabilities in transformative ways. Click the image below to watch today!   Power Platform Community Conference 2024 is here! It's time to look forward to the next installment of the Power Platform Community Conference, which takes place this year on 18-20th September 2024 at the MGM Grand in Las Vegas!   Come and be inspired by Microsoft senior thought leaders and the engineers behind the #PowerPlatform, with Charles Lamanna, Sangya Singh, Ryan Cunningham, Kim Manis, Nirav Shah, Omar Aftab and Leon Welicki already confirmed to speak. You'll also be able to learn from industry experts and Microsoft MVPs who are dedicated to bridging the gap between humanity and technology. These include the likes of Lisa Crosbie, Victor Dantas, Kristine Kolodziejski, David Yack, Daniel Christian, Miguel Félix, and Mats Necker, with many more to be announced over the coming weeks.   Click here to watch our brand-new sizzle reel for #PPCC24 or click the image below to find out more about registration. See you in Vegas!       Power Up Program Announces New Video-Based Learning Hear from Principal Program Manager, Dimpi Gandhi, to discover the latest enhancements to the Microsoft #PowerUpProgram. These include a new accelerated video-based curriculum crafted with the expertise of Microsoft MVPs, Rory Neary and Charlie Phipps-Bennett. If you’d like to hear what’s coming next, click the image below to find out more!   UPCOMING EVENTS Microsoft Build - Seattle and Online - 21-23rd May 2024 Taking place on 21-23rd May 2024 both online and in Seattle, this is the perfect event to learn more about low code development, creating copilots, cloud platforms, and so much more to help you unleash the power of AI.   There's a serious wealth of talent speaking across the three days, including the likes of Satya Nadella, Amanda K. Silver, Scott Guthrie, Sarah Bird, Charles Lamanna, Miti J., Kevin Scott, Asha Sharma, Rajesh Jha, Arun Ulag, Clay Wesener, and many more.   And don't worry if you can't make it to Seattle, the event will be online and totally free to join. Click the image below to register for #MSBuild today!   European Collab Summit - Germany - 14-16th May 2024 The clock is counting down to the amazing European Collaboration Summit, which takes place in Germany May 14-16, 2024. #CollabSummit2024 is designed to provide cutting-edge insights and best practices into Power Platform, Microsoft 365, Teams, Viva, and so much more. There's a whole host of experts speakers across the three-day event, including the likes of Vesa Juvonen, Laurie Pottmeyer, Dan Holme, Mark Kashman, Dona Sarkar, Gavin Barron, Emily Mancini, Martina Grom, Ahmad Najjar, Liz Sundet, Nikki Chapple, Sara Fennah, Seb Matthews, Tobias Martin, Zoe Wilson, Fabian Williams, and many more.   Click the image below to find out more about #ECS2024 and register today!     Microsoft 365 & Power Platform Conference - Seattle - 3-7th June If you're looking to turbo boost your Power Platform skills this year, why not take a look at everything TechCon365 has to offer at the Seattle Convention Center on June 3-7, 2024.   This amazing 3-day conference (with 2 optional days of workshops) offers over 130 sessions across multiple tracks, alongside 25 workshops presented by Power Platform, Microsoft 365, Microsoft Teams, Viva, Azure, Copilot and AI experts. There's a great array of speakers, including the likes of Nirav Shah, Naomi Moneypenny, Jason Himmelstein, Heather Cook, Karuana Gatimu, Mark Kashman, Michelle Gilbert, Taiki Y., Kristi K., Nate Chamberlain, Julie Koesmarno, Daniel Glenn, Sarah Haase, Marc Windle, Amit Vasu, Joanne C Klein, Agnes Molnar, and many more.   Click the image below for more #Techcon365 intel and register today!     For more events, click the image below to visit the Microsoft Community Days website.      

Tuesday Tip | Update Your Community Profile Today!

It's time for another TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   We're excited to announce that updating your community profile has never been easier! Keeping your profile up to date is essential for staying connected and engaged with the community.   Check out the following Support Articles with these topics: Accessing Your Community ProfileRetrieving Your Profile URLUpdating Your Community Profile Time ZoneChanging Your Community Profile Picture (Avatar)Setting Your Date Display Preferences Click on your community link for more information: Power Apps, Power Automate, Power Pages, Copilot Studio   Thank you for being an active part of our community. Your contributions make a difference! Best Regards, The Community Management Team

Users online (3,595)