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 / How to get group and c...
Power Automate
Answered

How to get group and channel NAME from IDs in Teams with Flow?

(0) ShareShare
ReportReport
Posted on by 15

Hi,

I've created a Flow task when "I am "@" mentioned" using trigger to send me an email. I'd like to add the NAME of the group and the channel into the subject of email. How is it possible? Based on this forum message (Get Teams name and Teams Channel) I could get the group and channel IDs, but not the NAMEs.

Thanks in advance for any help!

Attila

Categories:
I have the same question (0)
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hey @AttiM 

     

    The "When I am mentioned in a team channel" trigger already takes the team and channel as an input from you. It does not return you the values of those teams and channels once triggered. But now that you are already providing those details, you can customize your email action and include that as a hard coded string in the email action itself: 

     F2.PNG

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • Verified answer
    v-bacao-msft Profile Picture
    on at

     

    Hi @AttiM ,

     

    I agree with yashag2255. Since you have already specified Team(Group) name and Channel name when configuring the trigger, you should configure this information directly into the Email subject.

    Unless you want to apply this Flow to multiple Groups or channels, and you want to reduce the similar custom steps to configure Subject using Expression.

    Or you want to go deeper into these actions, you could refer to the following methods.

     

    • First, use the method involved in the link you mentioned to get the Team ID and Group ID.
    • Then use the List Teams action to get all the Teams, configure the Filter array to filter out the Teams corresponding to the specified Teams ID.
    • You can also use a similar method to get the Channel name.

    Image reference:

    142.PNG143.PNG144.PNG

     

    Best Regards,

  • AttiM Profile Picture
    15 on at

    Hi 

     

    Thank you so much for your detailed answer! Yes, this is the situation: I want to apply this Flow to multiple Groups or channels (and maybe share it with my colleagues) so I want to reduce the custom steps to configure Subject using Expression.

     

    With the help of your screenshots I could build my flow, similar like yours. 

    The question: how can I insert the the constructed TeamName of Apply to each and ChannelName of Apply to each 2 (as in your example) in my Send an email action's subject and body?

    In the Dynamic content list I can see the following (How can I insert my screenshots? 😕 )

    Filter channel:

    - Channel Description

    - Channel Id

    - Channel Name

    List Channels:

    - Channel Description

    - Channel Id

    - Channel Name

    Filter Team

    - Team Description

    - Team Id

    - Team Name

    List Teams

    - Team Description

    - Team Id

    - Team Name

    ChannelID

    - Output

    TeamID

    - Output

    and the other built-in content.

    But I cannot see the constructed TeamName of Apply to each and ChannelName of Apply to each 2 wich contanied the real names of them - if I believe well.

     

    Could you finish your training with this last step?

     

    Thanks in advance,

    Attila

     

     

  • Verified answer
    v-bacao-msft Profile Picture
    on at

     

    Hi @AttiM ,

     

    Please refer to the picture below to complete your Flow.

    166.PNG167.PNG168.PNG

    If there are any other questions, just ask.

     

    Best Regards,

  • AttiM Profile Picture
    15 on at

    Hi @v-bacao-msft ,

    Thanks a lot for your solution, it's working well! 

    Attila

  • Unknown99 Profile Picture
    18 on at

    Hi,

     

    As stated above is there anyway to get group chat name as well?? Since we use group chats more than channels I am trying to do same for group chats however could not find a way  😞

  • Unknown99 Profile Picture
    18 on at

    I was able to find solution with the above thank you 

  • weylinschreck Profile Picture
    6 on at

    For anyone finding this in 2024, there now appears to be a "Conversation Name" dynamic content value that you can use (make sure you check the output body), I'm using a "for selected message" trigger and it is availible.

    Example: @{triggerBody()?['teamsFlowRunContext']?['conversation']?['name']}

  • MarioOne Profile Picture
    67 on at

    Hello Everyone - As I can see, there is no way to get the Group Chat Name in 2024. Both dynamic fields below result with the long string ID: 

    MarioOne_0-1718625008534.png

     

    I am also chasing for the possibility to get the Group Chat Name and add it along to the record stored in SharePoint. Happy to hear from you.

     

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard