cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Mick282
Level: Powered On

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

 

image.pngI 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 Team
Community Support Team

Re: Slack Message Post and using mrkdwn

 

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

Community Support Team
Community Support Team

Re: Slack Message Post and using mrkdwn

 

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 Team
Community Support Team

Re: Slack Message Post and using mrkdwn

 

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

Mick282
Level: Powered On

Re: Slack Message Post and using mrkdwn

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?

Community Support Team
Community Support Team

Re: Slack Message Post and using mrkdwn

 

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
firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (5,700)