Showing results for 
Search instead for 
Did you mean: 
Not applicable

Extract data - HTML to Text



I have seen many examples of using substring but it is not working for me. I have the following text extracted from email message:




Chat transcript


Name: Mike Brown




I want to extract bnoth name and email and then generate a JSON object, something like this:



  "name": "Mike Brown",

    "email": ""



How do achieve this without using third party connector?


I use the substring expression  : 


substring(body('Html_to_text'), add(lastIndexOf(body('Html_to_text'), 'Name: '), 15), 😎

but I only get the word 'Mike'.


My flow is:


Please help



Not applicable


Hi @Anonymous ,


Please share the full message in the email body so we could make a test on my side and provide you a proper solution.


Best regards,

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.


Not applicable

Sorry for the delay - I actually ended up using a webhook from my external app and I was able to parse the JSON using Flow.

Helpful resources

MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (2,134)