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 / Email not sent cause c...
Power Automate
Unanswered

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
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,179 Super User 2025 Season 2 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

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 425 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard