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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Teams: Post a reply to...
Power Automate
Unanswered

Teams: Post a reply to a message (V2)

(0) ShareShare
ReportReport
Posted on by

I'm trying to build a flow where it will reply to a message that was posted to a channel in Teams earlier in the flow to confirm a second step but I cannot figure out how to get the message ID from the earlier message.  

 

Any help would be greatly appreciate.

 

Thanks!!

 

 

2019-08-15_11-00-53.png

Categories:
I have the same question (0)
  • Verified answer
    RezaDorrani Profile Picture
    12,143 on at

    Hi @Anonymous 

     

    When you pose the first message to the channel the message id should be available in dynmaic content but tsince this action is in preview it seems it is not showing anything except Body

     

    However expressions to the rescue

    Use expression

    body('Post_a_message_(V3)')?['id'] to get message id 
    where Post_a_message_(V3) is the name of the action of the first message posted in Flow
     
     
    Note : No need to do get all messages
     

    Regards,

    Reza Dorrani

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

  • v-bacao-msft Profile Picture
    on at

     

    Hi @Anonymous ,

     

    Have you had an opportunity to apply @RezaDorrani 's recommendations to adapt your Flow? Please take a try.

     

    Best Regards,

  • Hyperion Profile Picture
    28 on at

    I just tried using your solution but get the following error:

     

    OpenApiOperationParameterTypeConversionFailed. The 'inputs.parameters' of workflow operation 'Post_a_reply_to_a_message_(V2)_2' of type 'OpenApiConnection' is not valid. Error details: Input parameter 'messageId' is required to be of type 'Integer/int32'. The runtime value '"1574381349127"' to be converted doesn't have the expected format 'Integer/int32'.

  • ketaki_27 Profile Picture
    on at

    @Hyperion @Anonymous I am also getting the same issue. Did you find out any solution?

  • Mahesh_yv Profile Picture
    Microsoft Employee on at

    @Hyperion, @ketaki_27 
    was any solution found out for this? Getting the same error

  • Community Power Platform Member Profile Picture
    on at
    Also getting the same issue.....
  • KevinKeo Profile Picture
    2 on at

    So,

     

    I have tried every avenue possible but every single time the test succeeds, it replies to every single message in the channel I have designated for the end user. So how do I change it to find a specific keyword in the body of the message and only reply to that single post that it needs to reply to.

     

    Background Info: i am trying to create a helpdesk ticket system using Issue Tracking List. We are on Office365 so I am using modern sharepoint site and list.test_powerautomate.jpg

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard