Check Property Exits or not in Power Automate with different types

To check the value exists in different types we can use Expression in Power Automate. Following are different types of validations.

If the type is string, array or object we can use expression below,

if(empty(triggerOutputs()?['body/DataField']),null,triggerOutputs()?['body/DataField'])

If the type is different type than string, array,

if(empty(string(triggerOutputs()?['body/DataField'])),null,triggerOutputs()?['body/DataField'])

If the type is string, array or object we can use expression below,

if(empty(triggerOutputs()?['body/DataField_value']),null,concat('DataField(',triggerOutputs()?['body/DataField_value'],')'))

Comments

Popular posts from this blog

Linksys Wireless Connection Failure

Power Apps toPower Automate Error - The input body for trigger 'manual' of type 'Request' did not match its schema definition , the input String does not validate against the date

Power Apps - Restricting the Text Box only Whole Numbers