Skip to main content

Notifications

Community site session details

Community site session details

Session Id : SV6IzzQbNVe3CkJRft7IrT
Power Automate - Building Flows
Answered

post link (URL) to Microsoft Teams chat

Like (0) ShareShare
ReportReport
Posted on 16 May 2020 17:26:38 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

  • viplavmulkacpm Profile Picture
    22 on 27 May 2024 at 02:30:01
    Re: post link (URL) to Microsoft Teams chat

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

  • paddysheeran Profile Picture
    7 on 23 Jan 2023 at 22:30:12
    Re: post link (URL) to Microsoft Teams chat

    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.

  • MarcLudwig Profile Picture
    10 on 14 Oct 2022 at 07:04:37
    Re: post link (URL) to Microsoft Teams chat

    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

     

  • TheBrittinator Profile Picture
    16 on 12 Jul 2022 at 10:54:41
    Re: post link (URL) to Microsoft Teams chat

    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. 

  • TheBrittinator Profile Picture
    16 on 08 Jul 2022 at 19:39:13
    Re: post link (URL) to Microsoft Teams chat

    This worked PERFECTLY! Thanks so much!

  • clars234 Profile Picture
    7 on 13 Apr 2022 at 04:22:29
    Re: post link (URL) to Microsoft Teams chat

    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

  • Sastro_Chang Profile Picture
    41 on 24 Aug 2020 at 10:35:49
    Re: post link (URL) to Microsoft Teams chat

    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>

  • Verified answer
    v-bacao-msft Profile Picture
    on 18 May 2020 at 04:42:43
    Re: post link (URL) to Microsoft Teams chat

     

    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,

  • ChristianAbata Profile Picture
    8,947 Most Valuable Professional on 17 May 2020 at 14:21:26
    Re: post link (URL) to Microsoft Teams chat

    hi @Alice_italy  you can try this options.

     

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

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

     

  • Krishna92 Profile Picture
    Microsoft Employee on 16 May 2020 at 18:47:55
    Re: post link (URL) to Microsoft Teams chat

    @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.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,668 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard