cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ncotela23
Frequent Visitor

Flow is sending an email even if column is populated with data

Hello,

 

I have a flow built. I am receiving emails when the contact column is emptied (what I want), but also when the contact column is populated. I only want to receive notifications when the contact column is empty. You can see my flow below. I have tried it with the email in both the If Yes and If No side. If I have it on the IF YEs, then I receive an error and the email does not send at all. 

 

ncotela23_0-1651254817169.png

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
ScottShearer
Super User
Super User

@ncotela23 

See my example below.  I use an empty() expression to see if there is anything my approver comments field.  If it is empty, my condition returns true.

image.png

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

@ncotela23 

That's not an error - it is just saying that your condition returned false so the email action was not executed.

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

4 REPLIES 4
ScottShearer
Super User
Super User

@ncotela23 

See my example below.  I use an empty() expression to see if there is anything my approver comments field.  If it is empty, my condition returns true.

image.png

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott
ncotela23
Frequent Visitor

@ScottShearer When I tested it, it worked. I then did a few changes to empty that column and didn't receive an email. I received this error, know why?

 

ncotela23_0-1651262386154.png

 

@ncotela23 

That's not an error - it is just saying that your condition returned false so the email action was not executed.

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott
ncotela23
Frequent Visitor

Ok. Thanks Scott! You saved me from a weekend of working!

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,003)