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:
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.
Then finally we can use the text variable to list all the documents in the approval action.
This logic is not worked for me.
Can you send me the output of your flow run as a screenshot? Also what is not working?
Hello,
I have the feeling that the markdown does not work anymore as previously. Maybe something has been changed in Power Automate approvals?
Hi Jean-Philippe,
I got the following result:
When I put the following code in the details of an approval step:
# test
## test
0. item 1
0. item 2
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?
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.