Flow Exchange

Please login or click SIGN UP FOR FREE to create your FlowUG account to join this user group.
Expand all | Collapse all

Update Planner Checklist

  • 1.  Update Planner Checklist

    Posted Jul 11, 2019 08:59 PM
    Is there a way to add items to the checklist section of a planner task via flow?  If so how?

    ------------------------------
    Thanks!
    Tequilla
    ------------------------------


  • 2.  RE: Update Planner Checklist

    Silver Contributor
    Posted Jul 12, 2019 10:08 AM
    @Tequilla Butler,
    Hi there!  So, I've run into this a couple of times and have not found a way to bring attachments or checklists over out of Planner, so my suspicion is that we also cannot add or modify those things from Flow either.  We can add individual tasks, but I don't think we can go much deeper than that.

    Keep us posted.

    ------------------------------
    Ed Gonzales
    E-Commerce Manager
    Hampton Products International
    Foothill Ranch CA
    ------------------------------



  • 3.  RE: Update Planner Checklist

    Posted Sep 16, 2019 08:48 AM
    Edited by Harry Dimitriou Sep 16, 2019 09:16 AM
    There is actually a way but for the time being it is a bit of a workaround.

    1. You will have to utilise the Graph batch connector : https://docs.microsoft.com/en-us/graph/tutorials/flow
    2. After the connector is in place you create the planner task using the planner connector.
    3. Following that use the Graph connector to get the task details , that will also give you the etag of the task by parsing the response


    4. Following that you can use the graph connector again to update the task details, that will create a task with three checklist items , Checklist1,2,3


    The blacked out lines are guids . I haven't really tested it with attachments but it should be possible with the same method.

    ------------------------------
    Harry Dimitriou
    ------------------------------



  • 4.  RE: Update Planner Checklist

    Silver Contributor
    Posted Sep 17, 2019 02:04 AM
    I've done this using the same technique as Harry, but defined the response to the get planner task details action in the custom connector setup, which avoids the extra Parse Json step and the apply to each loop. Two ways to skin the same cat.

    ------------------------------
    Will Page
    Technical consultant
    Christchurch
    ------------------------------



  • 5.  RE: Update Planner Checklist

    Posted 30 days ago
    Thanks for the tip Will, out of curiosity , have you managed to created checklist items without hardcoding the items? I am reading my checklist items from Excel and constructing a sting with the checklist items

    e.g
    {"guid_goes_here": {"@@odata.type""microsoft.graph.plannerChecklistItem","title""Task1"},"2nd_guid_goes_here": {"@@odata.type""microsoft.graph.plannerChecklistItem","title""Task2"}}

    However when I am trying to place that string in the request the string above appears with extra encoding

    e.g
    "\"guid_goes_here\": {\"@@odata.type\": \"microsoft.graph.plannerChecklistItem\",\"title\": \"Task1\"}","\"2nd_guid_goes_here\": {\"@@odata.type\": \"microsoft.graph.plannerChecklistItem\",\"title\": \"Task2\"}"



    ------------------------------
    Harry Dimitriou
    ------------------------------



  • 6.  RE: Update Planner Checklist

    Silver Contributor
    Posted 29 days ago
    Yes indeed you can use dynamic content in the checklist. Just add the dynamic content directly into the body of the HTTP Patch request where the checklist text goes. I can post some screen shots later.

    One thing I found is the guid() function when used more than once in the same action, it recycles the guid, so define them in compose actions and reference those in the body.

    ------------------------------
    Will Page
    Technical consultant
    Christchurch
    ------------------------------