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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Email not sent cause c...
Power Automate
Answered

Email not sent cause condition is not met

(2) ShareShare
ReportReport
Posted on by 125
Hello everyone, 
I have created a flow that sends an email every time there is a typo with an email that has been inserted inside a Power App (to warn the user of the app of the mistake). 

Unfortunately, due to constrains in the app (business purpose) I cannot use a people picker tool to get the correct email to begin with.

Indeed, users copy paste user's email in a text box and they can copy paste multiple at once (hence the split emails variable in the flow).

The flow checks using the Search for Users function if the email is inside our company database. 

The flow sends an email only when the email is not found in the database (empty part of the formula = Screenshot if expression). To achieve that I have created an IF expression (screenshot attached) that returns 1 every time the email is not found.

The condition Current item = 1 then triggers the email. However, this last part is not working properly. Meaning, whenever the email is wrong (Screenshot Empty email) the value return is empty and the condition is not even triggered. Therefore, the flow terminates unsuccessfully. 

I hope I have been clear :) anyone has any lead on how I can fix this?

Thanks
Flow.png
Empty email.png
If expression.png
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,960 Moderator on at
    HI ,
     
    So one issue you have is that if you look at the value property its blank [] because there isn't such a person or a least not someone you could find using the
    search criteria you used.
     
    Now aside from that please clarify this or tell me I am incorrect.
     
    You are doing the Search for Users, based on the Split (Email), all good. But you should only expect to get 1 record, not many records.
     
    So essentially you have the extra For All for no reason, as I am assuming for a Single Split String Value aka Email, you will only need to do this.
     
    (expression)
     
    length(put your dynamic body/value property from the Search users)
    is equal to
    0
     
    Remove the For Each altogether and update your condition and it will do what you want, as it will give you back a length of 0,so you will send your email and if its 1, (found someone) it will do nadda
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 286

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard