Extract optional variables from JSON Payload using extract variables and reg expressions

Not applicable

Is there a way to extract optional variables from JSON payload using Extract variables.

if so can you please provide an example.

I am able to successfully extract variables from JSON Payload, When optional values are not passed, I am getting an error.

0 2 996
2 REPLIES 2

Former Community Member
Not applicable

Hi @Pradeep Ande In your Extract Variables policy, set the "IgnoreUnresolvedVariables" to true. This will treat any unresolvable variable (optional variable) as an empty string (null). Check the docs here for e.g.