Erp-Function Output parameter

I have an erp-function node in an Event that I need to use the output for. I have a Function where the response parameter is a boolean called “output”.

I have found the response parameter section but I don’t know how to parse the response from this to get the data I need.

I’ve found this for help but it doesn’t particularly mention how to use the Response? Do I need to set Response Parameters to anything? I’ve tried leaving them blank to check for the output but that didn’t give any results. I.e.

In the Condition node on Success on the function, I set the expression to be:

"{actionResult.output}" === true

But that didn’t do anything. Does anybody know where I can find any information on this?

1 Like

Figured this out.

FYI response parameters can be empty if not returning a dataset. To access a basic single response parameter in a condition node, the expression needs to be:

{actionResult.YOUR_VARIABLE_NAME} === true

For a boolean. For a string, wrap the curly braces in double quotes. For other types match accordingly.

9 Likes