How to dynamically select team channel to post message to in power automate?

Jeffrey Heavener 0 Reputation points
2023-06-25T19:53:26.1966667+00:00

I am trying to set up a flow that posts a message to a Teams Channel based on a specific response when a form is filled out. The form will specify the channel to post to and I am trying to specify the channel dynamically. I want it to post to different channels depending on values chosen in the form.

Since I don't know of a direct way to make this work, I was trying to match the form response to the Channel ID in Microsoft Lists to create an output that could be used as the dynamic Channel. When saved and ran I do not get any errors, however, this flow does not create the message in any channel. Help please!

User's image

User's image

Microsoft Teams | Microsoft Teams for business | Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Dillon Silzer 60,701 Reputation points Volunteer Moderator
    2023-06-26T02:34:33.3566667+00:00

    Unfortunately, Power Automate is not supported on this forum.

    I recommend that you post this on https://powerusers.microsoft.com/t5/Microsoft-Power-Automate/ct-p/MPACommunity and someone with more expertise will be able to assist.


    If this is helpful please accept answer.

    0 comments No comments

  2. Anonymous
    2023-06-26T05:33:29.26+00:00

    Hi @ Jeffrey Heavener

    Select essentially returns an array (even if it only has one value), while the channel field only needs a text value.
    Please add an Apply to each under Select and use the expression item() in the channel field of Post message in a chat or channel.

    User's image


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.