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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Power Automate: Sendin...
Power Automate
Answered

Power Automate: Sending email via excel online, need to filter out multiple rows that do not have emails.

(0) ShareShare
ReportReport
Posted on by 42

I'm working on a flow that sends out emails monthly.  The flow works, but I get an error each month saying the flow did not work since not every row has an email associated. I've been reading up that you can use either the Filter Query or Filter Array, but I can't seem to figure out how it works. I have two separate columns that would have an email in it so I need to filter out two separate columns/rows. 

 

The way I have the flow set up is once a month, it pulls the emails from excel, and the condition looks to see if a specific column has an x in there. (This is to not send an email out to previous month's group of emails)

 

If there is an X, it won't send, if blank, it goes through the two specific email rows, then sends an email. finally, it then updates that one column and places an x there to not send to this group the following month.  

 

Some rows don't have emails associated so not only do I get an error saying the flow didn't work, even though it did.  The flow also doesn't update that column to put an x so that we skip it for next month. 

 

JonnShea_0-1698253381592.png

 

Categories:
I have the same question (0)
  • Verified answer
    Michael E. Gernaey Profile Picture
    53,433 Super User 2025 Season 2 on at

    @JonnShea 

     

    Here is how you can do it.

     

    1. In your condition keep what you have there

    2. Click the Add button

    FLMike_0-1698282790526.png

     

    3. Click Add Group

    FLMike_1-1698282802089.png

     

    4. Change it to an OR from an AND group

    FLMike_2-1698282841895.png

    FLMike_3-1698282884583.png see the Or above the group (indented) the first image it says And

     

    5. Click the +Add in the GROUP

    FLMike_4-1698282925668.png

     

    6. Now in the two conditions you will add a check like this

    FLMike_5-1698282964785.png

     

    is equal to false the expression not the word

    FLMike_8-1698283052526.png

    FLMike_9-1698283064698.png

     

    Once you add them both this way, what you have done is said

     

    Send an Email if its NOT set to X and ONE of the two fields is NOT empty (aka has an email)

    FLMike_10-1698283142190.png

     

    If it goes into the No side, that means its an X or both emails are blank.


    If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • JonnShea Profile Picture
    42 on at

    Your solution partially worked. empty() and false did not work for me, but the format you gave me helped. essentially what I did is below. 

    Column is not equal to x AND

    Email Column 1 is not equal to blank OR

    Email Column 2 is not equal to blank 

     

    JonnShea_0-1698333043860.png

    I tried it with 10 rows, 4 of which had no emails associated to it. The rows that were blank were completely skipped and I did not receive an error.

    JonnShea_1-1698333569367.png

     

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 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard