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

Email content to a document library (MOSS 2007)

Power Apps - Restricting the Text Box only Whole Numbers

Features - "You are not authorized to view this page" - Error 403