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 / Choose an email addres...
Power Automate
Unanswered

Choose an email address based on table data.

(0) ShareShare
ReportReport
Posted on by 2

Hello all,

I'm building a flow that sends an email based an address being pulled in from a table.  For example the email will be delivered to "EmployeeEmail" and CC'd to "LeaderEmail".  However, there is not always an email address in the "LeaderEmail".  Where this is the case, I have a "DirectorEmail" column in the same table that I want to CC to. 

 

I need a function to do the following: CC to "LeaderEmail" if "LeaderEmail" is null; CC to "DirectorEmail"

 

Hope that makes sense!
Thanks in advance!

Categories:
I have the same question (0)
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    on at
    Re: Choose an email address based on table data.

    HI @bbreuner,

    Do you want to CC to DirectorEmail when LeaderEmail is null?

    Could you please tell me that how you configure the CC in your send email action?

     

    If you just pull the email field from the dynamic content, I think you could write a similar expression as below:

    if(equals(item()?['DirectorEmail'],null),item()?['DirectorEmail'],item()?['DirectorEmail'])
  • bbreuner Profile Picture
    2 on at
    Re: Choose an email address based on table data.

    @v-qiaqi-msft,

     

    Yes, CC the "directoremail" when the "LeaderEmail" is null. 

     

    And yes, I'm pulling in the email via dynamic content.  

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 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard