web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - General Discussion
Answered

Updating a SharePoint list when a Planner Task is completed

(0) ShareShare
ReportReport
Posted on by 423

Hi guy's this is driving me up the wall 😖

I have looked at previous issues which have been marked as complete and also tried using available templates and I still cannot get this flow to work.

 

I have a flow set up which creates a SharePoint list item and a planner task when a MS Form is filled in to generate tasks. This was quite tricky but I managed it. The bit where I am struggling with is when the Tasks are completed in Planner, I want Power Automate to update the SharePoint list. I have attached some screenshots, which I am almost certain are just like those in the examples I have looked at, but they don't work.Update on Completion1.jpg

 

Update on Completion2.jpg

 

I have the same question (0)
  • Verified answer
    creativeopinion Profile Picture
    10,480 Super User 2025 Season 2 on at
    Re: Updating a SharePoint list when a Planner Task is completed

    @nshaw75 Your filter query is missing a single quote after your Title dynamic content label.

    creativeopinion_0-1710644755593.png

    With the filter query above, the title of the Planner task must be an exact match to the Title in your SharePoint list. If this isn't reliable (meaning, if the Planner task may be renamed or altered) you should consider logging the Planner Task ID in your SharePoint list instead. 

    Return Count of Items

    Whenever I use a Filter Query in a Get Items action, I always like to return the count of items returned in a Compose action. This is helpful when building a flow and can also be used to troubleshoot your flow.

     

    Insert a Compose action. Add an Expression. Use the length() function.

    creativeopinion_1-1710644905213.png

     

     

    Select the Dynamic content tab and insert the value dynamic content from the Get Items action into the length() function.

    creativeopinion_2-1710644905845.png

     

     

    Run a test. Review the output of the Compose action. If an item is found, the Compose action should output a 1.

    creativeopinion_3-1710644905388.png

     

    Condition Check

    To prevent your flow from failing, you could also add a Condition action. If items have returned (aka there is number stored in the Compose action—that is not equal to 0), add the rest of your actions to the Yes branch. If not, do nothing.

    creativeopinion_4-1710645004137.png

     

    Avoid the Apply to Each Action

    The Get Items action will always return an array of items—even if it's a single item. You can avoid the Apply to Each action by using expression. Check out this section of my YT Tutorial: 3 Mistakes YOU 🫵 are Making with the Apply to Each Action in your Microsoft Power Automate Flow where I cover how to do this.

     

    In this video tutorial I’ll go over how to avoid these common mistakes when using the Apply to Each action in a Power Automate flow:

     

    1️⃣ Looping through a Single Item

    2️⃣ Creating Unnecessary Nested Loops

    3️⃣ Looping through an Unfiltered Array

     

    At the end of the video I share a few helpful insights when it comes to using the Apply to Each action in your flow.

     

    IN THIS VIDEO:

     How to avoid the Apply to Each action with a single item array

     How to use the item() function to access dynamic content in an array

     How to prevent unnecessary nested Apply to Each action loops

     How to use the Select action

     How to convert an array to a string with the Select action

    How to use the Filter Query field

     How to count the number of items in an array

     How to use a condition control

     How to use the concurrency control

     How to set a top count

     How to use Compose actions for troubleshooting

     

    Hope this helps!

    If I helped you solve your problem—please mark my post as a solution .
    Consider giving me a 👍 if you liked my response!

    👉 Level up your Power Automate skills by checking out my tutorials on YouTube
    👉 Tips and Tricks on TikTok and Instagram

     

  • nshaw75 Profile Picture
    423 on at
    Re: Updating a SharePoint list when a Planner Task is completed

    Thank you for spending to the time to help. Much appreciated as I was pulling my hair out .

  • nshaw75 Profile Picture
    423 on at
    Re: Updating a SharePoint list when a Planner Task is completed

    Thanks again, if I was to, as you suggest, change the filter query to the Task ID. I am assuming in the Filter query box I would need to type "TaskID eq'TaskID' " and not "Title eq'TaskID'"

     

  • creativeopinion Profile Picture
    10,480 Super User 2025 Season 2 on at
    Re: Updating a SharePoint list when a Planner Task is completed

    @nshaw75 You'll need to compose a filter query that suits your requirement. You will need to use the internal column name of whatever column in SP is storing the value you'd like to match to. If you have a Task ID column, you'll need to use the internal column name of that column.

     

    Keep in mind that the internal column name may not always match the name displayed in your Sharepoint list. If you aren't sure how to get the Internal Column name, you can refer to this section of one of my YT Tutorials.

     

    Hope this helps!

    If I helped you solve your problem—please mark my post as a solution .
    Consider giving me a 👍 if you liked my response!

    👉 Level up your Power Automate skills by checking out my tutorials on YouTube
    👉 Tips and Tricks on TikTok and Instagram
  • nshaw75 Profile Picture
    423 on at
    Re: Updating a SharePoint list when a Planner Task is completed

    Thank you.

  • TN-28101303-0 Profile Picture
    2 on at
    Updating a SharePoint list when a Planner Task is completed
     
    I saw your post while looking for the answer.
     
    Reading your messages, I still can't make the power automate flow running. Is it possible to show me the flow?
     
    Best wishes,

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Tom Macfarlan – Community Spotlight

We are honored to recognize Tom Macfarlan as our Community Spotlight for October…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 774 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 432 Moderator

#3
developerAJ Profile Picture

developerAJ 409

Last 30 days Overall leaderboard