cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
BianceBee
Frequent Visitor

Get name of the person tagged in yammer instead of ID - Power Automate

Hi 

 

Trying to find a way to get the tagged users name to appear up when getting data of tagged user from a post instead of their ID in yammer. ID appears as a number and would like to have the users name on there. I was able to get the name of the person who posted the comment but not the name of the tagged person. There are two options to get details of the tagged user which both give the tagged users ID not their name. wondering if anyone has an expression formula that can be used to get the name instead of their yammer ID. The data will go to a sharepoint list

 

BianceBee_0-1669595406430.png

BianceBee_1-1669595421807.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-xiaochen-msft
Community Support
Community Support

Hi @BianceBee ,

 

The name of the tagged user cannot be obtained directly through a function expression.

Because only the notified_user_id is provided in the output of the message.

vxiaochenmsft_0-1669614794823.png

 

 

You can get the username by adding actions. I made a sample for you.

 

Post a message in Yammer and notify a user.

 

vxiaochenmsft_1-1669614794825.png

 

 

Create a flow, and I will explain it step by step.

vxiaochenmsft_2-1669614794827.png

 

 

Get first message.

vxiaochenmsft_3-1669614794828.png

 

 

Use the ID of the notified user to get the user information and create a new item with the user name.

outputs('Get_all_messages_(V2)')?['body/value']

items('Apply_to_each')?['notified_user_ids']

items('Apply_to_each')?['notified_user_ids']

vxiaochenmsft_4-1669614794830.png

 

 

Save and run flow.

vxiaochenmsft_5-1669614794831.png

Best Regards,

Wearsky

View solution in original post

2 REPLIES 2
v-xiaochen-msft
Community Support
Community Support

Hi @BianceBee ,

 

The name of the tagged user cannot be obtained directly through a function expression.

Because only the notified_user_id is provided in the output of the message.

vxiaochenmsft_0-1669614794823.png

 

 

You can get the username by adding actions. I made a sample for you.

 

Post a message in Yammer and notify a user.

 

vxiaochenmsft_1-1669614794825.png

 

 

Create a flow, and I will explain it step by step.

vxiaochenmsft_2-1669614794827.png

 

 

Get first message.

vxiaochenmsft_3-1669614794828.png

 

 

Use the ID of the notified user to get the user information and create a new item with the user name.

outputs('Get_all_messages_(V2)')?['body/value']

items('Apply_to_each')?['notified_user_ids']

items('Apply_to_each')?['notified_user_ids']

vxiaochenmsft_4-1669614794830.png

 

 

Save and run flow.

vxiaochenmsft_5-1669614794831.png

Best Regards,

Wearsky

Thank you so much @v-xiaochen-msft this worked perfectly 🙂

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (2,057)