cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Mick282
Helper III
Helper III

Slack Message Post and using mrkdwn

Hi all,

 

I was just wondering in relation to the Slack connector on Power Automate. I've been reading some articles on slack message formatting from apps and it seems like you can do a lot of things like even hyperlinking texts and putting in buttons when Flow sends a message to a Slack channel. I just can't seem to get this working. Whenever I try to put in the blocks into the message area of Slack it does comes into the channel as plain text.

 

https://api.slack.com/reference/surfaces/formatting

 

I used an example from their block kit builder https://api.slack.com/tools/block-kit-builder?mode=message&blocks=%5B%7B%22type%22%3A%22section%22%2C%22text%22%3A%7B%22type%22%3A%22mrkdwn%22%2C%22text%22%3A%22This%20message%20contains%20a%20URL%20http%3A%2F%2Ffoo.com%2F%5CnSo%20does%20this%20one%3A%20www.foo.com%5CnThis%20message%20contains%20a%20URL%20%3Chttp%3A%2F%2Ffoo.com%2F%3E%5Cn%3Chttp%3A%2F%2Fwww.foo.com%7CThis%20message%20*is*%20a%20link%3E%5Cn%3Cmailto%3Abob%40example.com%7CEmail%20Bob%20Roberts%3E%22%7D%7D%5DI used an example from their block kit builder https://api.slack.com/tools/block-kit-builder?mode=message&blocks=%5B%7B%22type%22%3A%22section%22%2C%22text%22%3A%7B%22type%22%3A%22mrkdwn%22%2C%22text%22%3A%22This%20message%20contains%20a%20URL%20http%3A%2F%2Ffoo.com%2F%5CnSo%20does%20this%20one%3A%20www.foo.com%5CnThis%20message%20contains%20a%20URL%20%3Chttp%3A%2F%2Ffoo.com%2F%3E%5Cn%3Chttp%3A%2F%2Fwww.foo.com%7CThis%20message%20*is*%20a%20link%3E%5Cn%3Cmailto%3Abob%40example.com%7CEmail%20Bob%20Roberts%3E%22%7D%7D%5D

 

It then just comes through as plain text:

image.png

 

How do I go about using markdown text to put in structured messages with hyperlinks and potentially in the future buttons using the Flow connector for Slack?

2 ACCEPTED SOLUTIONS

Accepted Solutions
v-bacao-msft
Community Support
Community Support

 

Hi @Mick282 ,

 

Have you tried using markdown directly to format the message instead of using the code provided in the template?

 

I tested it on my side, and I can add hyperlinks and links through markdown.

 

If you need a new line, you can type a newline instead of "\ n", "\ n" does not seem to work.

Image reference:

160.PNG

Please take a try.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

 

Hi @Mick282 ,

 

Yes, you can choose not to configure Parse Mode or select none.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-bacao-msft
Community Support
Community Support

 

Hi @Mick282 ,

 

Have you tried using markdown directly to format the message instead of using the code provided in the template?

 

I tested it on my side, and I can add hyperlinks and links through markdown.

 

If you need a new line, you can type a newline instead of "\ n", "\ n" does not seem to work.

Image reference:

160.PNG

Please take a try.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-bacao-msft ,

 

Thanks for the quick response. So I tried copying your sample message exactly as per below's screenshot:

 

image.png

 

But when it comes into the channel. It still looks like the below:

 

image.png

 

You can see in the Advanced options of the flow. I've set the "Parse Mode" to "full". Should I turn that off?

 

Hi @Mick282 ,

 

Yes, you can choose not to configure Parse Mode or select none.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (7,276)