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 / Combine 3 separate ema...
Power Automate
Unanswered

Combine 3 separate email addresses after checking for null values

(0) ShareShare
ReportReport
Posted on by

Hello,

 

I'm new to Power Automate and have a fairly tricky request I'm wondering if you can advise me on. I have 3 separate single line of text fields in my SharePoint list. 

  • Record Owner Approver Email
  • Business Management Approver Email
  • Quality Approver Email

I'm told that there will sometimes be only one approver (e.g. Record Owner or BM or Qual), sometimes there will be 2 (e.g. Record Owner and BM) or all 3 emails will be filled in.

I figure I need to check the fields for null values and then concatenate the strings that are not null separated by a semi-colon before I can then insert the string (or array?) variable into my 'Start and Wait' for an approval step. 

I've been scouring the internet and haven't been able to find out how to do this combination of steps. If someone in the community could help guide me through it I would be super grateful. Thanks!

Categories:
I have the same question (1)
  • v-liwei-msft Profile Picture
    on at

    Hi @tagustin2020 

     

    Please try:

    vliweimsft_1-1675395333886.png

     

    vliweimsft_0-1675395289267.png

    concat(if(empty(items('Apply_to_each')?['RecordOwner']),'',concat(items('Apply_to_each')?['RecordOwner'],';')),if(empty(items('Apply_to_each')?['BM']),'',concat(items('Apply_to_each')?['BM'],';')),if(empty(items('Apply_to_each')?['Qual']),'',concat(items('Apply_to_each')?['Qual'],';')))

     

    Best Regards,

    Levi

     

  • Verified answer
    Mira Ghaly Profile Picture
    11,413 Moderator on at

    @tagustin2020 

     

    What you can do is that you  can initialize an Emails Variable as below and then sequential condition to check if the value of an email field is not null then you use the Append to an array variable, you can repeat this for all of your 3 fields and then pass the variable to the wait and approve step

    Mira_Ghaly_0-1675395298702.png

    Mira_Ghaly_1-1675395443351.png

    Mira_Ghaly_2-1675395482175.png

     

     

  • tagustin2020 Profile Picture
    on at

    @Mira_Ghaly 

    @v-liwei-msft 

     

    Hello Mira and Levi,

     

    Thank you both for your kind support! I think both suggestions are great. I'm marking Mira's as the solution as it might be a little a little easier to avoid syntax mistakes using the method she proposed. That being said, I will definitely be saving both approaches in my notebook as I'm always keen to increase my expression writing skills.

     

    I hope you both have a wonderful weekend!

    Teresa

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

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard