web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Answered

If empty...

(0) ShareShare
ReportReport
Posted on by 802

Hi, 

 

Basic one but stumping me at this early hour. 

 

I want this expression to be.... if this column value is blank/empty, input my email address, else (so its not empty), put the value from this column value.... what am I doing wrong?

 

if(empty(outputs('Update_a_row')?['body/cr350_submittedintotoolbyemail']), "my email", outputs('Update_a_row')?['body/cr350_submittedintotoolbyemail'])

 

Thanks

K.

Categories:
I have the same question (0)
  • grantjenkins Profile Picture
    11,063 Moderator on at

    It looks fine to me - assuming you're using single quotes for the email.

     

    What is the error you're getting? Do you have some sample JSON you could provide?

  • Sundeep_Malik Profile Picture
    6,501 on at

    Hey @Kosenurm 

     

    I was stuck in a similar scenario some days back. I tested a few things, and probably for you the following expression might work:

     

    if(conatins(outputs('Update_a_row')?['body/cr350_submittedintotoolbyemail'],''), "my email", outputs('Update_a_row')?['body/cr350_submittedintotoolbyemail'])

    Above they are empty single quotes: ''

    Not really sure, if the above fails, instead of those empty single quotes, you can try passing null too. Hopefully it will work. My scenario was a little different than yours.

  • Verified answer
    Sundeep_Malik Profile Picture
    6,501 on at

    @Kosenurm 

     

    Just check again. The mistake you have done is at my email. It should have single quotes around it not double quotes. So, try this:

     

     

    if(empty(outputs('Update_a_row')?['body/cr350_submittedintotoolbyemail']), 'my email', outputs('Update_a_row')?['body/cr350_submittedintotoolbyemail'])

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 711

#2
Vish WR Profile Picture

Vish WR 691

#3
Haque Profile Picture

Haque 525

Last 30 days Overall leaderboard