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 Platform Community / Forums / Power Automate / How to save get an e-m...
Power Automate
Unanswered

How to save get an e-mail if email and number is not filled

(0) ShareShare
ReportReport
Posted on by 23
Hey all,
 
I got a flow where I collect some info from a HTTP call (looking into MS BC 14). In the call there is alot off info, but since its a user that should fill out the most, something they forget to fill e-mail and/or mobile number.

Therefor I would like to sent an email, with the info about the salenumbes and telling them that one or both is missing on the order.

But how?

 
The idea is that when "For each" is done, there is is a variable that should save the salesnumber that have the missing info.

There I have a condition that is checked if there is something not filled and then sent a e-mail.
Because the variable "ColledResults" is outside the first "apply to each row" I need to clear it, so the email don't contain some wrong info.

I got a mistake that something isn't right about my condition, but I can't figure out how to solve this:


The first length is number, and the last email.

Anyone got some suggentions? :) 
 
Best regards,

Jacob
Categories:
I have the same question (0)
  • Suggested answer
    SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at
    How to save get an e-mail if email and number is not filled
    Try the empty function
     
    equals(empty(items('Apply_to_Each')?['Email']), true)
  • Suggested answer
    JB-30071354-0 Profile Picture
    23 on at
    How to save get an e-mail if email and number is not filled
    Thanks for that, and yes maybe it would work but I can't figure out how i should use it?

    Would you make a condition inside the For Each, where the a compose is saving the salesnumber, or?
  • Suggested answer
    SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at
    How to save get an e-mail if email and number is not filled
    On the left of your condition action, add
    empty(items('Apply_to_Each')?['Email']) (as an expression)
     
    On the right, add
    true (as an expression)
     
     
  • Suggested answer
    JB-30071354-0 Profile Picture
    23 on at
    How to save get an e-mail if email and number is not filled
    Well after alot off time thinking and testing, I now got it wokring with the "emty"-function.

    Thanks for the help :) 
     
    I just post this screenshot, so future people may got the same challenge :) 
     

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
Tomac Profile Picture

Tomac 497 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 477 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 242

Last 30 days Overall leaderboard