Hello, I'm new to Power Automate and the purpose of the flow below is to automatically post a message in the general Teams chat once a Planner to-do item is checked off as complete and notifying the next task owner:
The flow works, however it is posting the message across all plan checklists in the Team, which shouldn't happen because it's misleading and I can't figure out how to proceed without the Apply to each flow automatically inserting itself. For example, I checked off a task from the 5678 plan, but a chat notification still posted for the 6374 plan even though nothing was technically checked off from that plan list:
Any ideas on how I can adapt the flow to only apply the message for the indicated plan (5678)? Thank you for your help.
Solved! Go to Solution.
Okay, that was not in your original screen shot. In that case do this and you should be all set. I tested it and it works for me:
@tcannafax pleas check your filter array action. You are comparing an id that maeby is not unique that's why you got more than one response
Proud to be a Flownaut!
Maybe I am missing something... Except for the Get an at mentions token action, why do you need all of the actions between When a task is completed and Post message in a chat or channel? You are specifying which channel to post to in the Teams action, so just this should work for you:
Hi @David_MA , some of those other steps were suggested by another user to make sure the Plan ID displays properly in the subject line of the chat post. I previously tried the flow below (what you suggested), using Plan Id in the subject line instead of Title:
But when I do this, I get gibberish in the subject line:
I don't want to use the Title tag again, because it will just repeat the name of the task title, not the plan title:
If there's another suggestion for fixing that piece without Apply to each, I'll gladly try it. Thank you!
The plan ID is included in the action When a task is completed. You should be able to use that in the Teams action.
Okay, that was not in your original screen shot. In that case do this and you should be all set. I tested it and it works for me:
@David_MA this worked, thank you so much!!! We'll soon be working off of 5 different plans concurrently, so this issue was causing me major anxiety 😅 Much appreciated!