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

How to verify info in email body

Good Day All. Thank you in advance for any help. I am trying to search the body of an email (Its an alert email from MS). After I convert the body to plain text I need to check to see if there is a number higher than 0, but dont know how to search just the test I need. In the test below I need it to find the Total failing checks and then find the number a few lines later. In the code below I highlighted the test and number I need it to find. I then need to forward the email based on if the number is higher than zero. Could really use help on how to do the data verification. Thank you!!

 

<td class="small-6 large-3 columns" style="word-wrap: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0;vertical-align: top;text-align: left;color: #1a1a1a;font-family: &quot;Segoe UI&quot;, -apple-system, system-ui, BlinkMacSystemFont, Roboto, &quot;Helvetica Neue&quot;, Arial, sans-serif;font-weight: 400;Margin: 0 auto;line-height: 16px;font-size: 12px;padding-left: 0 !important;padding-bottom: 8px;width: 25%;padding-right: 0 !important;padding-top: 8px;mso-padding-top-alt: 8px;mso-padding-bottom-alt: 8px">
<p class="va-label" style="Margin: 0;color: #1a1a1a;font-family: &quot;Segoe UI&quot;, -apple-system, system-ui, BlinkMacSystemFont, Roboto, &quot;Helvetica Neue&quot;, Arial, sans-serif;font-weight: 600;padding: 0;text-align: left;line-height: 20px;font-size: 12px;Margin-bottom: 5px;mso-line-height-alt: 20px;word-wrap: normal;-webkit-text-size-adjust: none;mso-margin-bottom-alt: 5px">
Total failing checks</p>
<h3 style="color: inherit;font-family: &quot;Segoe UI&quot;, -apple-system, system-ui, BlinkMacSystemFont, Roboto, &quot;Helvetica Neue&quot;, Arial, sans-serif;font-weight: 400;padding: 0;Margin: 0;text-align: left;line-height: 24px;word-wrap: normal;Margin-bottom: 10px;font-size: 36px;mso-line-height-alt: 24px;-webkit-text-size-adjust: none">
1 <img height="20" width="20" src="https://aeocdn.azureedge.net/mediahandler/azure-emails-templates/production/branch-master/build-1005..." alt="" role="presentation" style="outline: none;text-decoration: none;-ms-interpolation-mode: bicubic;width: 20px;max-width: 100%;clear: both;display: inline-block;height: 20px">
</h3>

2 REPLIES 2
Super User
Super User

Re: How to verify info in email body

@mikecarey 

Hi there!  For this, I'd lean into a 3rd party tool like Parserr.  With that, you could set a rule that looks for "Total failing checks" and grab the thing after it (I'm pretty sure you could even leave it in HTML format).

 

From there, you could just set a condition to continue the flow if the count was high enough.

Keep us posted.

 

-Ed-

 

 

If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.

Community Support Team
Community Support Team

Re: How to verify info in email body

 

Hi @mikecarey ,

 

Could you try to configure a similar Flow and provide the results of Compose to us so that we can provide the appropriate expression to extract the data you need?

Image reference:

23.PNG

 

Best Regards,

Community Support Team _ Barry
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

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

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!

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 Solution Authors
Top Kudoed Authors
Users online (4,489)