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 data from a...
Power Automate
Unanswered

Extracting data from an email body

(0) ShareShare
ReportReport
Posted on by 11

Hello,

 

I have a need in Flows to be able to grab some data from an email. I have watched a video on YouTube, but that was from a web address. I added in the steps etc to do what I needed, and testing it runs fine and the new email that triggers works perfectly.

I'm getting The 'content' property of actions of type 'ParseJson' must be valid JSON. The provided value cannot be parsed: 'Unexpected character encountered while parsing value: <. Path '', line 0, position 0.'.

 

The flow is that... an email comes > converts html to text (I heard this was best) > pulls data > adds to file shrpnt

 

So basically, the data I am trying to pull looks like this in the email when it comes (blocked out for reasons):

Iridium_0-1630423832129.png

But it returns with:

Iridium_1-1630424000271.png

continuing...

Iridium_2-1630424021099.png


and the data eventually comes here:

Iridium_3-1630424097789.png

 

How can I find the data within the email to pull?

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @Iridium 

     

    Which email connector are you using? Could you also post a sample screenshot of your flow?

     

    Thanks

  • Iridium Profile Picture
    11 on at

    Not sure what you mean by email connector, sorry, I am new to this.

     

    Iridium_0-1630424770465.png

     

  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @Iridium 

     

    Thanks for your reply. There are different email connectors in Power Automate. Looks like you are using the Microsoft email connector.

     

    Are you mapping the body like below?

     

    image.png

  • Iridium Profile Picture
    11 on at

    Yes, exactly that

    Iridium_0-1630431278015.png

     

  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @Iridium 

     

    Could you please post a screen shot of your run history step convert to plain text?

     

    Thanks

  • Iridium Profile Picture
    11 on at

    I only added that step, but I have changed it playing a little more whilst waiting...

    Iridium_0-1630456652099.png

    Iridium_2-1630456939435.png

     

    and trying to use a similar style to here: https://powerusers.microsoft.com/t5/Building-Flows/Extract-text-from-body-of-an-email-and-create-new-rows-in-excel/m-p/105318#M10295

     

    with: first(skip(split(first(split(body('Html_to_text'),'Name')),':'),1))

     

    But the file literally brings back the code instead:

    Iridium_1-1630456855582.png

     

  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @Iridium 

     

    Thanks for the screenshot. I can see HTML to text removed the html tags. Could you post a sample text and explain what are the values you trying to extract? 

     

    Thanks

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 450

#2
Haque Profile Picture

Haque 366

#3
Valantis Profile Picture

Valantis 349

Last 30 days Overall leaderboard