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 / @mention teams tag usi...
Power Automate
Answered

@mention teams tag using dynamic content

(0) ShareShare
ReportReport
Posted on by

Hi,

 

I am trying to create a flow that when a sharepoint list item is created, it posts a teams message and tags that team based off the 'Department' column. E.g. Department 1 is chosen on the list item, flow posts to Department 1 channel with the Department 1 tag.

 

As all of the names of the department / channel / tag align, i thought i could select the tag token dynamically with the following:

mrsamd_0-1715070960696.png

 

However it returns with a "Invalid tagId specified" error. 

 

How can i choose the tags dynamically / get the correct tag ID?

Any help is really appreciated. 

Categories:
I have the same question (0)
  • Verified answer
    v-yueyun-msft Profile Picture
    on at

    Hi , @mr-samd 

    You can get the Tag id from the "List all tags for a team" action :

    vyueyunmsft_0-1715071883595.png

     

     

    If this reply can help you , you can click mark this reply as solution (Accept solution) which can help more people, thanks in advance! 

     

    Best Regards,

    Yueyun Zhang

     

  • mr-samd Profile Picture
    on at

    Thanks for the quick reply. Once i have all of the tags, how do i relate the department value to the correct tag? Is it just a case of using a switch and repeating the teams post for every tag? e.g. if team 1, post message with team 1 tag, if team 2 post with team 2 tag? Or is there a more efficient way of doing this?

  • mr-samd Profile Picture
    on at

    Spent another hour on this, Still having an issue with allocating the list of teams tags collected above to the correct department. How do i select the tag i need and add it to the right teams message? I have made a switch for each department so i can hard write in the different tags but i dont know how to allocate each tag to the right case of the switch. I tried appending them to an array variable and then once within the case, filtering this array to get the right tag bt i cant make it work. 

     

    Any help would really be helpful

  • v-yueyun-msft Profile Picture
    on at

    Hi , @mr-samd 

    Thanks for your response and sorry for the delay reply due to OOF.  

    So what is your [Department] in your list? Dose it mean the tag name in your team? If this , you can use the filter array to filter the tag from the "List all tags for a team" action's output.

     

    Best Regards,

    Yueyun Zhang

  • mr-samd Profile Picture
    on at

    I tried that but in the end worked out i was massively over complicating it.  This would be more beneficial if there was loads of options for department as it could expand but as i only have 6 departments, i removed it and replaced with a switch and got the @mention token for that team within the switch so it didnt need to be dynamic. I just had to copy and paste for all of the teams. Thanks for your help anyway. Il mark your original answer as the solution as it did help and will be useful in other projects. Thanks

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

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard