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

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Multiple filter condit...
Power Automate
Unanswered

Multiple filter condition to send emails from latest excel file from SharePoint

(0) ShareShare
ReportReport
Posted on by
I am Working on a Flow that will send email to three levels of managers based on the status of sale,( if sale status is 1 only manager 1 should get an email with corresponding rows in excel file, if Sale status is 2 then-manager 1 and 2 both get an email with corresponding rows in excel file, similarly, if the status is 3 all three managers get the email)Sample Data,
This is a sample of the file I get in share point
DATEEMPIDNAMESTATUSSM EMAIL LEVEL1LM EMAIL LEVEL2GM EMAIL LEVEL 3
19-04-21123456TOM3QAZ@ABC.COMWSX@ABC.COMGM@ABC.COM
19-04-21987654SMIT2EDC@ABC.XOMWSX@ABC.COMGM@ABC.COM
19-04-21741852JACK1QAZ@ABC.COMRFV@ABC.COMGM@ABC.COM
19-04-21456789JIL1EDC@ABC.XOMRFV@ABC.COMGM@ABC.COM
19-04-21258630ALEX2EDC@ABC.XOMRFV@ABC.COMGM@ABC.COM
 
this is what the email for SM manager(1) should look like.
 
QAZ@ABC.COMIF SALE STATUS IS 1 THE ONLY THE SM MANAGES SHOULD GET EMAIL
DATEEMPIDNAMESALE STATUS
19-04-21741852JACK1
    
EDC@ABC.XOM
DATEEMPIDNAMESALE STATUS
19-04-21456789JIL1

 

this is for status 2
EDC@ABC.XOMIF SALE STATUS IS 2 THEN SM AND LM MANAGERS SHOULD GET MAIL
DATEEMPIDNAMESALE STATUS
19-04-21987654SMIT2
19-04-21258630ALEX2
    
WSX@ABC.COM
DATEEMPIDNAMESALE STATUS
19-04-21987654SMIT2
    
RFV@ABC.COM
DATEEMPIDNAMESALE STATUS
19-04-21258630ALEX2
 
and for status 3
QAZ@ABC.COMIF SALE STATUS IS 3 ALL THE MANAGERS SHOULD GET EMAIL
DATEEMPIDNAMESALE STATUS
19-04-21123456TOM3
    
WSX@ABC.COM
DATEEMPIDNAMESALE STATUS
19-04-21123456TOM3
    
GM@ABC.COM
DATEEMPIDNAMESALE STATUS
19-04-21123456TOM3
right now I am using 3 flows that get unique emails from the file and send the email using Expression Union(variable('Email'),variable('Email')) which I use to create an Html table and send the email
a manager can have multiple rows in a file that need to send in a single email.
Categories:
I have the same question (0)
  • Mari Profile Picture
    on at
    Re: Multiple filter condition to send emails from latest excel file from SharePoint

    Hi! I am not sure I understood the issue, is there a section where you are stuck?

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard