cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
moraleseder
Frequent Visitor

Posting a message when planner task is completed.

I have a flow set-up that creates task in Planner out of messages in a Teams channel. I'm trying to create another flow that when the task gets marked as completed, a reply is posted to the message the task was created from. I've looked around and have tried different suggestions but have not been successful, any help would be greatly appreciated. Here is a screenshot of what I have so far.

 

moraleseder_0-1607014859735.png

 

1 ACCEPTED SOLUTION

Accepted Solutions

It's not possible, Power Automate will use the selected Teams connector for all actions related to Teams, and the connector is fixed in the flow. It'll be always one user who'll post all the responses (and use all the other connectors to Planner, SharePoint,...), and it's you by default since you created the flow.

You could check in your organization if it's possible to get some separated account that you'll use for those automated actions, otherwise it'll be always you (or some other colleague of yours whose connector will be used).

image.png



[ If I have answered your question, please Accept the post as a solution. ]
[ If you like my response, please give it a Thumbs Up. ]

[ I also blog about Power Automate solutions even for non-IT people. ]

View solution in original post

6 REPLIES 6
tom_riha
Super User
Super User

Hello @moraleseder ,

when you check the 'Post a reply to a message' action, it needs 'message ID', not content of the message.

image.png

Unless you have the original message ID stored somewhere in the Planner task, you must search for it. That means 'Get messages' from the channel to get all posted messages. Among them, you want to find the one corresponding to the Planner task.

If the Planner task has the whole message in the title, you'll use 'Filter array' to get only the message whose 'content' is equal to Planner task title. Then you can use the message ID from this message to post a response.

image.png



[ If I have answered your question, please Accept the post as a solution. ]
[ If you like my response, please give it a Thumbs Up. ]

[ I also blog about Power Automate solutions even for non-IT people. ]
moraleseder
Frequent Visitor

Wow that worked perfectly!!

Now the last step is that I want the "Completed" message to be posted by the user that actually marked the task as completed. 
Currently, all responses are being posted by me since I'm the one that created the flow (I'm assuming).

Any ideas?

It's not possible, Power Automate will use the selected Teams connector for all actions related to Teams, and the connector is fixed in the flow. It'll be always one user who'll post all the responses (and use all the other connectors to Planner, SharePoint,...), and it's you by default since you created the flow.

You could check in your organization if it's possible to get some separated account that you'll use for those automated actions, otherwise it'll be always you (or some other colleague of yours whose connector will be used).

image.png



[ If I have answered your question, please Accept the post as a solution. ]
[ If you like my response, please give it a Thumbs Up. ]

[ I also blog about Power Automate solutions even for non-IT people. ]
moraleseder
Frequent Visitor

Thank you very much for all your help!

Serdotty
New Member

Hello, came across this thread and am trying to implement this flow in 2022.

Has reply with a message in a channel replaced "post a reply to a message (V2)"?

Hello @Serdotty ,

yes, it did.



[ If I have answered your question, please Accept the post as a solution. ]
[ If you like my response, please give it a Thumbs Up. ]

[ I also blog about Power Automate solutions even for non-IT people. ]

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (2,505)