Skip to main content

Notifications

Power Automate - Building Flows
Suggested answer

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

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
  • Suggested answer
    JB-30071354-0 Profile Picture
    JB-30071354-0 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 :) 
     
  • Suggested answer
    SudeepGhatakNZ Profile Picture
    SudeepGhatakNZ 14,123 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
    JB-30071354-0 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
    SudeepGhatakNZ 14,123 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)

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,591

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,090

Leaderboard