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 / Extracting multiple UR...
Power Automate
Answered

Extracting multiple URLs from html body

(0) ShareShare
ReportReport
Posted on by 2,567

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

 

Categories:
  • Verified answer
    JimmyW Profile Picture
    2,567 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 289

#2
11manish Profile Picture

11manish 288 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 125

Last 30 days Overall leaderboard