cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Dane_
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
rogrimbe 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
rogrimbe 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

Dane_
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.

Brian-Cape
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
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (8,679)