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.

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']))
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