web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to deal with condi...
Power Automate
Unanswered

How to deal with conditional logic on email received for 50+ different outcomes

(0) ShareShare
ReportReport
Posted on by 36

We are a trade company that receives work orders from over 60 real estate agencies. 

Currently the email rules look for key text in the body/subject and in the senders address and excludes emails with RE: in the subject.

 

Now that AI form processing is reading these workorders I only want to send the emails through for processing if the conditones for each client are met. 

I have created  spreadsheet that contains the search terms/fields required to correctly filter and forward emails depending on which company sent the email. 

Would it be best practice to do a custom expression at the start of the flow that is looking for the company name in the email to then populate the dynamic custom expression of and/or/contains conditions by getting the row with that key and returning the fields as the dynamic variables?

 

Maybe something like:

Once email has been received...
1. IF body contains "Company ABC"

2. Get the values of the condition parameter from the spreadsheet for that company. 

3. If body contains "work Order" or "new work order" or "purchase order" << values retrieved from the spreadsheet

4. AND IF subject line does not contain "Re"

5. Then flow can proceed.

6. Email output to email lookup field in spreadsheet for Company ABC

 

That's the general idea. Does it sound like the right methodology?

Categories:
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard