cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
zveres
Level: Power Up

get string from email body

Hello,

 

I need to get date and time from email body to set calendar when new eamil arrives. This is the line of the body in HTML:

<body>

...

<p class="MsoNormal">revoke time:2018-09-27T11:30:00</p> 

...

</body>

 

MS flow

Compose: Body(email)

Compose2: split(outputs('Compose'),'revoke time:')?[1]   

Compose3: split(outputs('Compose2'),'</p>')

Compose4: outputs('Compose3')?[0] 

 

 

 

Function in Compose3 do not remove everthing after and including first <p>.  

 

 

1 REPLY 1
Community Support Team
Community Support Team

Re: get string from email body

Hi @zveres,

 

It seems that your email body is in HTML format. Please try to use the action HTML to text to convert the email body to plain text, then use codes to get date and time from email body.

The following thread could be your reference:

https://powerusers.microsoft.com/t5/Building-Flows/Read-email-content-from-body-of-the-email-extract...

 

Best regards,

Mabel Mao

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

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

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

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 Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 92 members 3,250 guests
Please welcome our newest community members: