Hi All, I've successfully created a flow to send an email to my team when a message is posted.
But is it possible to include the URL to the teams message in the email as well?
Currently the body of the email only includes the name of the sender; importance; and the body of the message.
I'm hoping it can also include the direct link to the teams chat; please help! 🙂
sorry I spoke too soon and have spent way too many hours trying to figure this out - seems like there should be a simpler solution! lol
This is a new flow that I tried to create...
The email produces this... any idea why? The hyperlink points to the URL for the channel...
@romey2000 If my solution helped you and solved your problem. Please mark it as a solution so others who may have the same question as you can find it! Thx!
thank you!
If you insert the Message dynamic content from the When a new channel message is added action and run a test, you can view the outputs of what is returned.
The link to the message can be accessed using the webUrl key.
Insert another Compose action. Insert an expression, type in a question mark, square brackets and single quotes.
?['']
In between the single quotes, enter the key. In this case, it's webUrl. You must ensure the text matches the key.
Place your cursor at the start of the expression. Tip: Press the up arrow key.
Select the Message dynamic content.
Run a test. This will return your URL. You can use this in your email now.
Highlight your link text in the Send an Email (V2) action, click on the link button. You won't be able to select the dynamic content here. Enter any text (this is just temporary) into the Link Target field and press add.
Click the Code View button.
Highlight the text you entered for the Link Target (it will be the text between the double-quotes). Insert the Outputs from the Compose action that is holding your message URL.
Should look like this.
Hope this helps!
WarrenBelz
146,743
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,079
Most Valuable Professional