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

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 II
Super User II

@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
Community Support

 

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
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (40,989)