Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 9djsrzH+gjkwQnRvZvm7iU
Power Automate - Building Flows
Answered

Slack Message Post and using mrkdwn

Like (0) ShareShare
ReportReport
Posted on 12 Dec 2019 22:43:30 by 124

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?

  • Verified answer
    v-bacao-msft Profile Picture
    on 13 Dec 2019 at 06:17:27
    Re: Slack Message Post and using mrkdwn

     

    Hi @Mick282 ,

     

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

     

    Best Regards,

  • MikeC282 Profile Picture
    124 on 13 Dec 2019 at 06:08:22
    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?

  • Verified answer
    v-bacao-msft Profile Picture
    on 13 Dec 2019 at 04:41:45
    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,

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Building Flows

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 148 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 140 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 129

Overall leaderboard
Loading started