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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / post link (URL) to Mic...
Power Automate
Answered

post link (URL) to Microsoft Teams chat

(0) ShareShare
ReportReport
Posted on by 58

Hi all,

I'm building a flow where after an excel file on SharePoint is modified send to specific channel a message with the URL of file,

 

unfortunately this link doesn't work

 

someone could help me?

 

thanks in advance

Categories:
I have the same question (0)
  • Krishna92 Profile Picture
    Microsoft Employee on at

    @Alice_italy 

     

    You can use the SEND HTTP REQUEST TO SHARE POINT to retrieve the linking Url of the file.

     

    _api/web/GetFolderByServerRelativeUrl('Name of share point document library')/Files('File Name')?$select=LinkingUrl

     

    Pass the above URI request in the SEND HTTP REQUEST TO SHARE POINT action and you will be able to get the file url.

     

    If this information helps you with resolution, please consider giving a thumbs up and mark the solution as resolved.

  • ChristianAbata Profile Picture
    8,951 Most Valuable Professional on at

    hi @Alice_italy  you can try this options.

     

    [Bing](https://bing.com)

    <a href="www.google.com">GOOGLE</a>

     

  • Verified answer
    v-bacao-msft Profile Picture
    on at

     

    Hi @Alice_italy ,

     

    Please try the following configuration:

    118.PNG

    Click the icon to edit the message body in code view and insert a hyperlink.

     

    Best Regards,

  • Sastro_Chang Profile Picture
    41 on at

    I have no idea, I still have no luck to get the link in MS TEAMS. Here is my code view: 

     

    <p><span style="font-family: tahoma">Hello All,<br>
    <br>
    New file added &nbsp;- </span><span style="font-family: tahoma">@{triggerBody()?['{FilenameWithExtension}']}</span><span style="font-family: tahoma"> by </span><span style="font-family: tahoma">@{triggerBody()?['Author']?['DisplayName']}</span><span style="font-family: tahoma"><br>
    <br>
    </span><span style="font-family: tahoma">@{triggerBody()?['{Path}']}</span><span style="font-family: tahoma"></span><span style="font-family: tahoma">@{triggerBody()?['{FilenameWithExtension}']}</span><span style="font-family: tahoma"><br>
    <br>
    Click </span><a href=""><span style="font-family: tahoma">Here</span></a><span style="font-family: tahoma"> &nbsp;for Link to file :<br>
    <br>
    </span><span style="font-family: tahoma">@{triggerBody()?['{Link}']}</span><span style="font-family: tahoma"><br>
    <br>
    <br>
    Thanks!</span></p>

  • clars234 Profile Picture
    7 on at

    This works well when you test it manually after creating it. But once you save and exit out of the flow for it to run automatically it will break the hyperlink code and change it (see picture). It will still have the hyperlink format but is unclickable and keeps the raw url instead of changing it to the name given.BrokenLink.JPGBroke.JPG

  • TheBrittinator Profile Picture
    16 on at

    This worked PERFECTLY! Thanks so much!

  • TheBrittinator Profile Picture
    16 on at

    It should only change when you are editing. Leave the message in code format and save your flow, it shouldn't revert back. If you ever have to modify anything later, you may need to readjust that again. 

  • MarcLudwig Profile Picture
    12 on at

    Hi @clars234 ,

    I was faced with the same issue and used a workaroud to solve this. Just use "Compose" to create the teams message in HTML format. The output of the compose action can then be used as the message text.

    MarcLudwig_0-1665730870997.png

     

  • paddysheeran Profile Picture
    7 on at

    The link when received into the chat message via a flow opens in Excel Online. Is there any way around this? Teams settings are already set to open in desktop App. When I copy the link to the file from SharePoint and just paste it into a chat window, the link when clicked opens in the desktop app. I just want to replicate that in the flow.

  • viplavmulkacpm Profile Picture
    22 on at

    Can someone please show me how the message shows up on teams apps, once the formatting is done using compose and HTML action?

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard