Skip to main content

Notifications

Community site session details
Power Automate - Building Flows
Answered

Teams: Post a reply to a message (V2)

Like (0) ShareShare
ReportReport
Posted on 15 Aug 2019 16:04:27 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

  • KevinKeo Profile Picture
    2 on 23 Jul 2021 at 12:22:09
    Re: Teams: Post a reply to a message (V2)

    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

  • Community Power Platform Member Profile Picture
    on 28 Apr 2020 at 20:58:14
    Re: Teams: Post a reply to a message (V2)
    Also getting the same issue.....
  • Mahesh_yv Profile Picture
    Microsoft Employee on 26 Dec 2019 at 08:01:08
    Re: Teams: Post a reply to a message (V2)

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

  • ketaki_27 Profile Picture
    on 20 Dec 2019 at 04:02:46
    Re: Teams: Post a reply to a message (V2)

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

  • Hyperion Profile Picture
    28 on 22 Nov 2019 at 00:17:10
    Re: Teams: Post a reply to a message (V2)

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

  • v-bacao-msft Profile Picture
    on 19 Aug 2019 at 06:51:49
    Re: Teams: Post a reply to a message (V2)

     

    Hi @Anonymous ,

     

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

     

    Best Regards,

  • Verified answer
    RezaDorrani Profile Picture
    12,141 on 15 Aug 2019 at 16:19:03
    Re: Teams: Post a reply to a message (V2)

    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

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,743 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,079 Most Valuable Professional

Leaderboard
Loading started
Loading started
Loading complete