How to check if variable is null or empty and pass to argument in invoke workflow

How to check if variable is null or empty if it is empty then pass the value as “NA” else pass the variable value to the argument

I would like to check above condition in the value field in argument in invoke work flow ( below screenshot)

Below workflow will write the values into DB

@Sathish_Kumar_S

Please try this

If(String.IsNullOrEmpty(variable),"NA",variable)

cheers

if
string.IsNullOrEmpty(variable1) = false
then arg = variable
else
arg = “NA”

Regards

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.