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 Automate - Building Flows
Unanswered

Trying to send emails for only rows with data in table

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Goal of my flow: Daily process - Copy data from one file to another and then send emails to people listed in the excel file. New file is provided daily.

Current Issue: Flow gets stuck on condition (at Step 6 listed below) where I want the flow to only send emails to rows with data (not blank rows).

 

Flow Steps

1. Set a variable for later use: "CurrentRow" set to integer 2.

2. Take new excel file and convert raw data into table.

3. List rows in table

4. Copy data to excel template with 'Update a row' action (this uses the "CurrentRow" variable)

5. List rows of new template table

6. For each row that is not blank, send an email to the EmailAddress field.

 

I must make my initial table much larger than needed so it will capture the daily list I get of people to email (list is always less than 50 so my table is set to go to row 100 to be safe). The flow seems to get stuck with the extra empty rows.

 

How do I get my flow to send emails to only rows with data?

 

Flow image:

 

_NT__0-1611268394879.png

 

Condition image:

 

_NT__1-1611268447414.png

 

I have the same question (0)
  • Paulie78 Profile Picture
    8,418 Moderator on at
    Re: Trying to send emails for only rows with data in table

    You don't need the condition, you have to options:

    1. You can add a filter array step after your list rows present in a table OR
    2. You can perform an oData query on your list rows present action to exclude the empty results.

    In either case your resulting array will not contain any blanks, so you will be able to proceed to your each loop without the need for a condition.

  • _NT_ Profile Picture
    Microsoft Employee on at
    Re: Trying to send emails for only rows with data in table

    Thanks for the reply and I like the sound of option 2 (oData query). I tried to use SKUID ne null but it tells me "Expression "SKUID ne null" is not supported." 

    Do you know what my oData query would need to be?

    _NT__0-1611273993453.png

     

     

  • Paulie78 Profile Picture
    8,418 Moderator on at
    Re: Trying to send emails for only rows with data in table

    Try:

    SKUID ne ''
  • _NT_ Profile Picture
    Microsoft Employee on at
    Re: Trying to send emails for only rows with data in table

    Using SKUID ne ' ' got me passed the step but in the next part of the process, it got stuck trying to use the result. This was the resulting error:

    _NT__0-1611784821462.png

     

    This is the apply to each 4 in edit mode:

    _NT__1-1611785295617.png

     

    Do you know why it's now stuck and how to get around this?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 614 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 401 Moderator

#3
chiaraalina Profile Picture

chiaraalina 282

Last 30 days Overall leaderboard