cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
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
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 @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.

View solution in original post

Helpful resources

Announcements
New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (6,257)