Using Markdown in Microsoft Flow approval actions

List of Links in Approval

Using Markdown in Microsoft Flow approval actions

By:

Date:

Today I had a look at the option to use Markdown in Approval tasks. All the basic information can be found in the documentation, Use Markdown in Microsoft Flow approval requests.

I was trying to include links in my approval task.

MarkDown links

The simple syntax for this is something like this:

[Link Text](Link URL)

 

Approval Links

Can I user the above to create multiple links like this:

 

List of Links in Approval

 

The Flow

In my flow I’m now getting all the files from a library using the get files action. Nothing complicated about that bit.

The next bit however is nicer. First we need to create a variable called Document Links. Then within an Apply to each step we add a link to the text variable.

The flow with multiple links

Then finally we can use the text variable to list all the documents in the approval action.

 

Is your business still running on paper trails, sprawling Excel files, or ageing Access databases? There’s a better way — and I can show you exactly what it looks like. I’m the Technical Director of Vantage 365, a Microsoft solutions consultancy working with clients across the UK, the Netherlands, and worldwide. For over 30 years I’ve been turning messy, manual business processes into clean, automated systems that save time, reduce errors, and give teams the visibility they need to make better decisions. SharePains is not just any blog run by a Microsoft MVP. Have you ever used Try-Catch in Power Automate? The original post about Try-Catch in Power Automate can still be found on this site, https://staging.sharepains.com/2018/02/07/try-catch-finally-in-power-automate-flow/ Or have you ever used the Pieter’s method to avoid variables and speed up your flows? https://staging.sharepains.com/2020/03/11/pieters-method-for-advanced-in-flows/ You can contact me using contact@staging.sharepains.com

6 responses to “Using Markdown in Microsoft Flow approval actions”

  1. Sandipkumar Patel Avatar
    Sandipkumar Patel

    This logic is not worked for me.

    1. Pieter Veenstra Avatar

      Can you send me the output of your flow run as a screenshot? Also what is not working?

  2. Jean-Philippe Avatar
    Jean-Philippe

    Hello,

    I have the feeling that the markdown does not work anymore as previously. Maybe something has been changed in Power Automate approvals?

    1. Pieter Veenstra Avatar

      Hi Jean-Philippe,

      I got the following result:

      Markdown result

      When I put the following code in the details of an approval step:


      # test
      ## test
      0. item 1
      0. item 2

      1. Jean-Philippe Avatar
        Jean-Philippe

        Indeed this is working fine. But the links with markdown with variables (as show in your article) are not working as expected. Have you also experienced this?

      2. Pieter Veenstra Avatar

        I just tried the following code:


        # test
        ## test
        0. item 1
        0. item 2
        [@{outputs('Compose_2')}](@{outputs('Compose')})

        And the url appeared properly. For me the Compose_2 was holding the description of the hyperlink and the Compose action was holding the url.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.