SOLVED

Add @mention programmatically to Teams channel message as reply

%3CLINGO-SUB%20id%3D%22lingo-sub-2110309%22%20slang%3D%22en-US%22%3EAdd%20%40mention%20programmatically%20to%20Teams%20channel%20message%20as%20reply%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2110309%22%20slang%3D%22en-US%22%3E%3CP%3EIs%20it%20possible%20to%20reply%20to%20a%20message%20with%20an%26nbsp%3B%40mention%20automatically%20via%20Power%20Automate%20or%20any%20other%20automation%20system%3F%3CBR%20%2F%3E%3CBR%20%2F%3EUse%20case%20is%20that%20I'm%20posting%20downtime%20information%20to%20a%20specific%20channel%20via%20email%20webhook%2C%20so%20the%20message%20is%20in%20plain%20text.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2110309%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFlow%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMention%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPower%20Automate%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2112205%22%20slang%3D%22en-US%22%3ERe%3A%20Add%20%40mention%20programmatically%20to%20Teams%20channel%20message%20as%20reply%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2112205%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F642475%22%20target%3D%22_blank%22%3E%40Thomsch%3C%2FA%3E%26nbsp%3B-%20You%20can%20also%20use%20graph%20API%2C%20Please%20check%20this%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fresources%2Fchatmessagemention%3Fview%3Dgraph-rest-1.0%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Edocs%3C%2FA%3E.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2110741%22%20slang%3D%22en-US%22%3ERe%3A%20Add%20%40mention%20programmatically%20to%20Teams%20channel%20message%20as%20reply%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2110741%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F590590%22%20target%3D%22_blank%22%3E%40Nikitha-MSFT%3C%2FA%3E%26nbsp%3BThanks.%20But%20I%20don't%20have%20a%20bot.%20Is%20this%20the%20only%20way%20to%20add%20a%20mention%20after%20all%3F%20Can%20you%20give%20me%20a%20little%20further%20instruction.%20Much%20appreciated%2C%20thanks.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2110716%22%20slang%3D%22en-US%22%3ERe%3A%20Add%20%40mention%20programmatically%20to%20Teams%20channel%20message%20as%20reply%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2110716%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F642475%22%20target%3D%22_blank%22%3E%40Thomsch%3C%2FA%3E%26nbsp%3B-%20You%20can%20add%26nbsp%3B%40mention%20to%20your%20channel%20messages%20by%20adding%20mention%20to%20entities.%20Could%20you%20please%20check%20this%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Fbots%2Fhow-to%2Fconversations%2Fchannel-and-group-conversations%3Ftabs%3Ddotnet%23adding-mentions-to-your-messages%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EAdding%20mentions%20to%20your%20messages%3C%2FA%3E%20for%20more%20info%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2110314%22%20slang%3D%22en-US%22%3ERe%3A%20Add%20%40mention%20programmatically%20to%20Teams%20channel%20message%20as%20reply%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2110314%22%20slang%3D%22en-US%22%3E%3CP%3EWith%20Power%20Automate%20I'm%20also%20only%20able%20to%20automatically%20reply%20with%20plain%20text%20messages%20%3A%E6%B3%A3%E3%81%8D%E9%A1%94%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Thomsch_0-1612209154769.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F251089i17004EEF7419D583%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Thomsch_0-1612209154769.png%22%20alt%3D%22Thomsch_0-1612209154769.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Frequent Contributor

Is it possible to reply to a message with an @mention automatically via Power Automate or any other automation system?

Use case is that I'm posting downtime information to a specific channel via email webhook, so the message is in plain text.

4 Replies

With Power Automate I'm also only able to automatically reply with plain text messages :crying_face:

Thomsch_0-1612209154769.png

 

@Thomsch - You can add @mention to your channel messages by adding mention to entities. Could you please check this Adding mentions to your messages for more info?

@Nikitha-MSFT Thanks. But I don't have a bot. Is this the only way to add a mention after all? Can you give me a little further instruction. Much appreciated, thanks.

best response confirmed by Thomsch (Frequent Contributor)
Solution

@Thomsch - You can also use graph API, Please check this docs.