Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Extracting multiple URLs from html body

(0) ShareShare
ReportReport
Posted on by 2,563

Getting my data from an enhanced multi string column in SharePoint. This column contains hyperlinks.

What I want to do is extract the URL's and convert them into markdown links that is supported by Teams Adaptive cards.

 

For Hyperlinks to work and display correctly in a Teams Adaptive card the following format is needed.

[I'm an inline-style link](https://www.google.com)

This is an sample of the data I get out today, where I need to extract the URL's and the title and format it to the Teams Adaptive cards markdown for links.

 

Sample data

<div class="ExternalClassB78FACFB4D354E9989D997809F5C160A"><a href="/&#58;u&#58;/r/sites/DEMO/Illustrations/150Hz_modulation_predominant.svg?csf=1&amp;web=1&amp;e=6QhPSU" title="Link to file 1"><span style="color&#58;rgb(255, 255, 255);">​</span>Link to file 1</a></div><div class="ExternalClassB78FACFB4D354E9989D997809F5C160A"><div style="margin-top&#58;14px;margin-bottom&#58;14px;"><a href="/sites/DEMO/Illustrations/150Hz_modulation_predominant.svg" title="Link to file 2">Link to file 2</a><p><br></p><div style="margin-top&#58;14px;margin-bottom&#58;14px;"><a href="https&#58;//www.google.com/" title="Link to file 3">Link to file 3</a><br></div><a href="/sites/DEMO/Illustrations/150Hz_modulation_predominant.svg" title="Link to file 2"></a></div><a href="/&#58;u&#58;/r/sites/DEMO/Illustrations/150Hz_modulation_predominant.svg?csf=1&amp;web=1&amp;e=6QhPSU" title="Link to file 1"></a></div>

 

I would like to state that for some reason when links are inside the own tenant power automate removes the https://
https://powerusers.microsoft.com/t5/Building-Flows/Power-Automates-removes-https-on-it-s-own-if-the-link-is-in-your/m-p/1426254

 

  • Verified answer
    JimmyW Profile Picture
    2,563 on at

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