cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Post Team Message then Reply Message

Hi,

 

I've used a basic template where a SharePoint file is added to a folder, it adds a message to Teams, requests Approval, then posts a message back to the Team.

 

I've tried changing the Flow to post a reply to the original Team message but I'm unsure how to get the Message ID to pass to the Reply. The only dynamic content that is available is the Team Body?

 

Can I do what I'm wanting to do and if so, please could someone point me in teh right direction.

Appreciate any help.

 

MSFlow_Teams.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Helper I
Helper I

Re: Post Team Message then Reply Message

Hi Dane, 

there is no way to getthe message Id in a nice way from the post message return data.

 

you can do something a bit ugly and use the get messages action and go over the messages with a condition to find the one you need which you post before and extract the id 

View solution in original post

3 REPLIES 3
Highlighted
Helper I
Helper I

Re: Post Team Message then Reply Message

Hi Dane, 

there is no way to getthe message Id in a nice way from the post message return data.

 

you can do something a bit ugly and use the get messages action and go over the messages with a condition to find the one you need which you post before and extract the id 

View solution in original post

Highlighted
New Member

Re: Post Team Message then Reply Message

Thanks for the feedback, I'm currently looking at this putting something together.

 

It's not the cleanest, as you say, but I think i can get the job done.

Highlighted
Frequent Visitor

Re: Post Team Message then Reply Message

Instead of using Dynamic Content, use Expression using this: body('Post_message')?['id']

Helpful resources

Announcements
FirstImage

Microsoft Ignite 2020

Check out the announcement of Power Platform content at Microsoft Ignite!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Users online (8,451)