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 / Update item - if field...
Power Automate
Unanswered

Update item - if field is blank then ignore, if field is not blank then update

(0) ShareShare
ReportReport
Posted on by

Hi,

 

I have a flow that is using a master list to update another list. When i input data into a list it needs to update the other list, but if i list a field empty, i want it to keep whatever is already in the destination list. 

 

Flow1.PNG

 

I've been trying to use the if(empty( function but i keep getting errors. 

 

if(empty(triggerBody()?['Supervisor']?['DisplayName'])),item()?['Supervisor']?['DisplayName'],triggerBody()?['Supervisor']?['DisplayName']))
 
Flow2.PNG
 
Essentially what i want to achieve is if the Supervisor name on the master list is not changed, then leave the destination list as it.

So i've setup the if statement to look be like this-

if(empty("When an item is created Supervisor Display Name")),"Get Items Supervisors Display Name","When an item is created Supervisor Display Name"))

 

I keep getting this error "The input parameter(s) of operation 'For_each' contains invalid expression(s). Fix invalid expression(s) for the input parameter(s) of operation 'For_each'."

 

Not sure if that makes sense, if not please ask for more information.

 

Thanks,

Kyle 

Categories:
I have the same question (0)
  • Chriddle Profile Picture
    8,434 Super User 2025 Season 2 on at

    Before the update, use "Get item".

  • Verified answer
    v-yetonggu-msft Profile Picture
    on at

    Hi @Kyledonohue ,

    Please try this expression:

    if(empty(triggerBody()?['Supervisor']?['DisplayName']),items('For_each')?['Supervisor']?['DisplayName'],triggerBody()?['Supervisor']?['DisplayName'])

    Best Regards,

    Sunshine Gu

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

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard