cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
theBrianL
Helper I
Helper I

How to Stop Flow if Filter Query Does not Return Records

I used the filter query to get items from SharePoint List and then add rows into Excel table.  I then email Excel table using just a static email. But I don't want to send email if the filter query does not return any records.  I tried adding a condition in several different places, and when I do it sends the same email multiple times.  E.g. if there are 3 records that are inputted into table from condition, it will send the same email 3 times.  There has got to be a way to do this without sending multiple emails?   

 

 

theBrianL_1-1617848820142.png

theBrianL_2-1617849419481.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
ChristianAbata
Super User II
Super User II

hi @theBrianL  you can do this

 

filter.PNG

 

Use length to get the number of values that you have and then you can compare: If the values are more than 0 it means you have data, if not you no have data 



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA

View solution in original post

1 REPLY 1
ChristianAbata
Super User II
Super User II

hi @theBrianL  you can do this

 

filter.PNG

 

Use length to get the number of values that you have and then you can compare: If the values are more than 0 it means you have data, if not you no have data 



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA

View solution in original post

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Users online (71,705)