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 / Add a condition to avo...
Power Automate
Answered

Add a condition to avoid empty email

(0) ShareShare
ReportReport
Posted on by 3,273

Hello community. 

I am looking for some help with my flow.

 

I have a two share point list

1. Employees

2. Orders

 

In my list Orders I have a Date column "ETD"

 

In my flow I am filtering the Employees first to get only the people that I need. For instance Emp by Department = Production

 

 

sajarac_1-1657670516470.png

 

Now in my second list I am filtering based in the following

 

Employee Name "LC_Initials eq 'Outputs' and ETD ge 'Today' and ETC le 'Today + 2 days.

 

sajarac_2-1657670548434.png

 

The employees selected can get the email with the ETD that falls into this criteria. for instance 5 employees 

 

I need to send an email to each employee when the ETD y equal to today + 2 days. The 5 employees are getting the email but 2 of them doesn't have a date for the ETD. I mean:

 

5 Employees are receiving the email notification. 3 employees with the ETD in the email body and 2 employees with the email body empty.

 

My question is:

How can I implement a condition to avoid sending an empty email? If the employee doesn't have any ETD date that matches the criteria is not receiving an email.

 

Thanks in advance for any help.

 

Regards

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    WillPage Profile Picture
    2,307 Super User 2025 Season 2 on at

    The get items within the Apply to each loop returns no items you want no email to go to that person? If that's the case, then simply add a condition like length(body('Get_items_OCL10plus2')?['value]) is greater than 0 and put the email action in the yes branch.

  • Sajarac Profile Picture
    3,273 on at

    Thank you very much Sr. Fixed at the first attempt.

    Very appreciated 

    🙂

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 339 Super User 2025 Season 2

#1
trice602 Profile Picture

trice602 339 Super User 2025 Season 2

#3
David_MA Profile Picture

David_MA 270 Super User 2025 Season 2

Last 30 days Overall leaderboard