Data Actions with null values

Hi,

We are trying to move some of our data actions to the scripter instead of architect, to be able to use them on outbound calls as well.

It used to work fine a few months ago, but now we are getting an error when running the data action.

The issue have been isolated to the data actions returning a null value.

In architect the data actions work just fine, and you can see if a output is assigned null by using the IsSet function on the variable, but if you get a null value back in the scripter, the data action will fail with a error, and no data will be returned.

Do anyone know if there is a fix for this, without altering the return values on the data action, as it is a generic one?

The scripting dev team has requested that this issue be reported through PureCloud Support for investigation.

Thank you, I'll ask our partner to make a ticket.

I have a similar issue with one of our data actions when the following input value is null and the data action is run from the script

"regNumber": {
"type": "string",
"maxLength": 6,
"pattern": "^[0-9]{6}$",
"description": "The reg number used to query CRM"
}

when I try to run the data action from the script with no value entered for "regNumber" I get the following error CREATEPHONEACTIVITY FAILED

I have successfully ran the action with a null regNumber value from the test section for the action in purecloud and postman.

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