Showing results for 
Search instead for 
Did you mean: 
New Member

get string from email body



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:



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




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>.  



Community Support
Community Support

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:


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


August 2020 CYST Winners!

Check out the winners of the recent 'Can You Solve These?' community challenge!


Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.


Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021


Power Automate Community User Group Member Badge

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

Top Solution Authors
Top Kudoed Authors
Users online (4,318)