web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Clickable Links to Doc...
Power Automate
Answered

Clickable Links to Documents in MS Teams and Outlook

(0) ShareShare
ReportReport
Posted on by

All, 

What is the best way so that in a PowerAutomate - both links to documents in MS Teams and Outlook work and are a clickable a href:

 

In my case I have a Start and Wait for an Approver step using MS Teams for approvals.

start_and_wait_for_approval.png

The Append to String when I do it this way works in MS Teams but not Outlook:

string_variable_msteams.png

The Append to String when I do it this way works in Outlook but not MS Teams:

string_variable_outlook.png

Therefore I'm not sure how to get this to work so that both MS Teams and Outlook both work with a link to a document.

Categories:
I have the same question (0)
  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    @koneill2020 , are you able to post a screenshot of the message in teams? From what I know you should be using markdown syntax.

     

  • koneill2020 Profile Picture
    on at

    Sure it is attached: msteams_approval_msg.png

  • Verified answer
    SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    Why don't you use the Item link property?

     

  • koneill2020 Profile Picture
    on at

    Can I place into the Item Link property then my Links variable where I'm creating the link to the documents.

    I had a requirement to not have the link to the actual list item and that's the only way I've ever used the Link property.

  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    The Item link property is just a placeholder for a link.

    You can specify any link (not necessarily the link to item)

     

  • koneill2020 Profile Picture
    on at

    Looks like using the markdown works well. 

    The only item is that I'm getting an extra ] in the URL when I have multiple attachments which are displayed in both the MS Teams approval and Outlook approval as such:

    https://mysite.sharepoint.com/sites/SystemsandTools/Lists/Dashboard/Attachments/329/silhouette.jpg]

     

    Here is how I forming that URL:

    koneill2020_0-1675291481139.png

     

    koneill2020_1-1675291518879.png

     

     

     

  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    Can you post the markdown code that it generates based on your expression?

     

  • koneill2020 Profile Picture
    on at

    Here is an example of the markdown with one attachment:

    (100complaint.png) [https://mysite.sharepoint.com/sites/SystemsandTools/Lists/Dashboard/Attachments/331/100complaint.png]

    However when I click the link it has an extra ] at the end:
    It looks like the webpage at https://mysite.sharepoint.com/sites/SystemsandTools/Lists/Dashboard/Attachments/331/100complaint.png]

    Here is an example of the markdown output with multiple attachments:

    (silhouette.jpg) [https://mysite.sharepoint.com/sites/SystemsandTools/Lists/Dashboard/Attachments/332/silhouette.jpg]
    (small_email.gif) [https://mysite.sharepoint.com/sites/StandardsSystemsandTools/Lists/Dashboard/Attachments/332/small_email.gif]
    (video.gif) [https://mysite.sharepoint.com/sites/StandardsSystemsandTools/Lists/Dashboard/Attachments/332/video.gif]

    and clicking any of the three links it's the same as above it has an extra ] at the end:

  • koneill2020 Profile Picture
    on at

    So I got this to work turns out I had a space in the markdown between the [] and () so per this spec Use Markdown formatting in Teams - Microsoft Support it can't have any spaces: [Title](URL) 

    I also utilized this excellent video by Daniel Christian 

    Working With Links In Power Automate Approvals

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 630

#2
Valantis Profile Picture

Valantis 420

#3
11manish Profile Picture

11manish 350

Last 30 days Overall leaderboard