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 Apps / Extract string from a ...
Power Apps
Answered

Extract string from a label in a canvas app

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

Thanks for your reply.

 

I am receiving the email in the label this way:

 

<div class="ExternalClass9E13xxxxxxx"><div style="font-family&#58;Calibri, Arial, Helvetica, sans-serif;font-size&#58;11pt;color&#58;rgb(0, 0, 0);">abc@gmail.com; def@gmail.com</div></div>

 

I tried doing a trim/split:

trim(first(split(last(split(outputs(label.text,'">')),'</div>'))) 
{I used this in flow and it worked}
 
But its throwing an error in canvas app.
 
Please help me on this.
 
Thank you!

@v-qiaqi-msft 

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,926 Most Valuable Professional on at

    Hi @Anonymous ,

    Try this

    Last(
     Split(
     First(
     Split(
     Label.Text,
     "</div>"
     )
     ).Result,
     ">"
     )
    ).Result

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

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 Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 194 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 150

Last 30 days Overall leaderboard