Printing the name of the empty variables

Hello All,

for logging purposes I created a logging sequence that is supposed to only the missing information (empty information) so any idea how can I create the following condition:

(there are many variables so I just want to log the missing or empty ones)
for example:

if the variable Var1 is empty
log: missing information Var1

Thank you

Hi , you can add if condition
String.isnullorempty(string variable name)
Log message
Missing information for the variable “Variable name” (put variable name inside the double quotes or else either it will write empty or it will throw null reference exception)

Interesting question.
I never tried to get or list all the variables of a workflow or a sequence.
Let me look into this.

Karthik Byggari

1 Like