Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

teamid, team and channel id and channel are empty

(0) ShareShare
ReportReport
Posted on by

Hi all, I would like to inform the users by mail when a new adaptive card is posted into channel. I can select teamid, team, channelid and channel as dynamic content , but they are empty , how can I get the team and the channel name? Chat GPT and bard were not a help to fix it.

  • johncampbell Profile Picture
    9 on at
    Re: teamid, team and channel id and channel are empty

    so much time wasted.   thank you very much.  I love your channel

  • creativeopinion Profile Picture
    10,450 Super User 2025 Season 1 on at
    Re: teamid, team and channel id and channel are empty

    @johncampbell Thanks for watching! Can you try to edit your flow in the Classic Designer instead of the New Designer? The New Designer still has a few bugs and I would imagine this could be one of the bugs. If you still can't see the body dynamic content—because you've already edited your flow in the New Designer, you may need to create a brand new flow first. Switch to the Classic Designer immediately before editing.

     

    Hope this helps!

  • johncampbell Profile Picture
    9 on at
    Re: teamid, team and channel id and channel are empty

    Hi Creative Opinion

    You have some amazing content.  thank you

    I am trying to get the channelId from teams.  I have done what you have shown except my fetch array is not returning a body 

    johncampbell_0-1707421561776.png

     

    these are the outputs of my filter array

    johncampbell_1-1707421655513.png

    Howerver I can not access the channel ID.  I have tried ?[0]['id']

     

    any help would be appreciate

     

  • creativeopinion Profile Picture
    10,450 Super User 2025 Season 1 on at
    Re: teamid, team and channel id and channel are empty

    @armino It's quite a process to return the information that you are looking for. Please note: The scope actions aren't necessary. However I use them in my flow so I can easily collapse groups of actions and keep things organized.

     

    Get Message Details

    You will need to add a Get Message Details action to your flow to return details from the posted message. Insert the Message ID dynamic content from the When a new channel message is added action.

     

    Note: Compose actions aren't necessary—you can use the dynamic content directly in the other actions. However, to better illustrate what's going on in the flow, I'm using Compose actions. 

     

    I've added two Compose actions to store the Channel ID dynamic content and the Team ID dynamic content from the Get message details action. 

     

    creativeopinion_0-1696038405395.png

     

    As you can see, the Get message details action only returns IDs not the Team or Channel name. You will need to use the IDs to retrieve those from other actions.

    creativeopinion_3-1696038582462.png

     

    Get a Team

    Add a Get a team action. I've inserted the Compose action Outputs that is storing the Team ID

     

    This action will return all Team details. I've inserted a Compose action (optional) to the flow to store the Display Name of the Team. 

     

    creativeopinion_1-1696038417714.png

    Get the Channel

    Power Automate doesn't have a List Channel action. You will need to use the List channels action. This action will return a list of all channels from your selected team.

     

    You will need to use a Filter Array action to filter out the channel you are looking for by its ID. To learn more about how to use the Filter Array action, please refer to this recent YT Tutorial I uploaded.

     

    In the From field, insert the Channel List dynamic content from the List Channels action above. In the first value field insert the Channel id dynamic content. Leave the operator as is equal to. In the second value field, insert the Outputs from the Compose action 

     

    creativeopinion_2-1696038429069.png

    Run a test.

     

    Get the Channel Name

    The Filter Array action will return an array of items even if it's a single item. In order to get the channel name you will need to use an expression. Refer to this section of the YT Tutorial I uploaded on how to get dynamic content from a Filter Array action.

     

    All dynamic content can be accessed using the key. The key is the text in red between the double quotes. The channel name can be returned by using the DisplayName key. 

    creativeopinion_4-1696038618076.png

    Add a Compose action to your flow. Insert an expression. To return the dynamic content from this Filter Array action you need to start with this:

    ?[0]['']

    Since you are only wanting to return a single channel name you need to access the first item in the array which can be done by using the item index: [0]

     

    creativeopinion_8-1696041855718.png

     

     

    In between the single quotes enter the key for the dynamic content you want to return. To return the channel name use DisplayName. Make sure that you type it exactly as it appears in the Filter Array outputs.

     

    Place your cursor at the beginning of the expression. Tip: Press the up arrow key. Insert the Body outputs from the Filter Array action. 

    creativeopinion_9-1696041882625.png

     

    Press Ok.

    creativeopinion_10-1696041897598.png

     

    Hope this helps!


    If I helped you solve your problem—please mark my post as a solution ✅.
    Consider giving me a 👍 if you liked my response!

    👉Watch my tutorials on YouTube
    👉Tips and Tricks on TikTok

     

     

     

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1