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 Automate - Building Flows
Unanswered

Need help adding an expression to fill empty slots with "Unknown"

(0) ShareShare
ReportReport
Posted on by

Hello So I added a compose funtion to my bot to look through the JobName column and check for empty cells. If it finds and empty cell it fills it with "unknown/notlisted" and if it doesnt it just uses what it does find. The expression I am using is.
if(empty(triggerBody()?['JobName']), 'Unknown/Not Listed', triggerBody()?['JobName'])

 

The problem is it fills all cells with "unknown/not listed" not just empty ones.

I have the same question (0)
  • v-yetonggu-msft Profile Picture
    on at
    Re: Need help adding an expression to fill empty slots with "Unknown"

    Hi @rmartori ,

    Please try this expression:

     

    if(empty(triggerBody()?['JobName']),null,triggerBody()?['JobName'])

    Best Regards,

    Sunshine Gu

     

  • rmartori Profile Picture
    on at
    Re: Need help adding an expression to fill empty slots with "Unknown"

    Sadly that just made both test emails empty, I dont know why but it is treating a non-empty cell as if it was empty and replacing it with either null with your expression or  'Unknown/Not Listed' with mine. 



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

Coming soon: forum hierarchy changes

In our never-ending quest to improve we are simplifying the forum hierarchy…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 535 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 348 Moderator

#3
developerAJ Profile Picture

developerAJ 262

Last 30 days Overall leaderboard