cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Stanley_L
Level: Powered On

Extract data - HTML to Text

Hi,

 

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

 

[https://XXXXXX/logos/9999/0]

 

Chat transcript

 

Name: Mike Brown

 

E-mail: mike.bwon@testmail.com

 

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

 

{

  "name": "Mike Brown",

    "email": "mike.brown@testmail.com"

}

 

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:

flow.PNG

Please help

 

 

3 REPLIES 3
Stanley_L
Level: Powered On

Re: Extract data - HTML to Text

Anyone??

Community Support Team
Community Support Team

Re: Extract data - HTML to Text

Hi @Stanley_L ,

 

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.

 

Stanley_L
Level: Powered On

Re: Extract data - HTML to Text

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

Announcements
firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,272)