Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
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.

  • koneill2020 Profile Picture
    on at
    Re: Clickable Links to Documents in MS Teams and Outlook

    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

  • koneill2020 Profile Picture
    on at
    Re: Clickable Links to Documents in MS Teams and Outlook

    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:

  • SudeepGhatakNZ Profile Picture
    14,381 Most Valuable Professional on at
    Re: Clickable Links to Documents in MS Teams and Outlook

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

     

  • koneill2020 Profile Picture
    on at
    Re: Clickable Links to Documents in MS Teams and Outlook

    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,381 Most Valuable Professional on at
    Re: Clickable Links to Documents in MS Teams and Outlook

    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
    Re: Clickable Links to Documents in MS Teams and Outlook

    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.

  • Verified answer
    SudeepGhatakNZ Profile Picture
    14,381 Most Valuable Professional on at
    Re: Clickable Links to Documents in MS Teams and Outlook

    Why don't you use the Item link property?

     

  • koneill2020 Profile Picture
    on at
    Re: Clickable Links to Documents in MS Teams and Outlook

    Sure it is attached: msteams_approval_msg.png

  • SudeepGhatakNZ Profile Picture
    14,381 Most Valuable Professional on at
    Re: Clickable Links to Documents in MS Teams and Outlook

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

     

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1