Skip to main content

Notifications

Community site session details

Community site session details

Session Id : xaK4eXZkWEI9ONTY43ZahF
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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,670 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard
Loading complete