cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Filter condition for outlook email subject in flow

Hi,

 

 

My outlook emails have subject like this : SLA warning for INC1234567

                                                                  SLA warning for  INC2345678   etc...

 

My flow looks like this:

darrykevin_0-1604647029338.png

 

I tried using dynamic content for subject such as : SLA warning for ([A-Z][A-Z][A-Z]/d{7})

But this is an invalid expression.

 

How do i filter mails wrt the above different IDs?

 

Thank you.

 

1 REPLY 1
Brad_Groux
Community Champion
Community Champion

You use the Subject Filter to search for the presence of specific words in the subject of an email. See: Run flows based on email properties - Power Automate | Microsoft Docs.

You can however also utilize a search parameter. See: Use query parameters to customize responses - Microsoft Graph | Microsoft Docs.

From the documentation above, your search string needs to be in the following search parameter format: 

$search="subject:has"&$select=subject

If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION ☑️. If you find this reply helpful, please consider giving it a LIKE. Want to know more? Follow @BradGroux on Twitter, and check out my Medium blog at https://msft.engineer.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (1,975)