Want to pass JSON as custom action in agent script

I have a data action which accepts JSON data as input contract, i want to use this DA to be used in custom action in Agent Script.
Right now, i am getting error when trying to do so.
Below is the error:
BridgeAction.ts:75 scripter-ui--root: Bridge action failed with an unexpected error {
"detail": {
"name": "TypeError",
"message": "Cannot read properties of undefined (reading 'match')",
"stack": "TypeError: Cannot read properties of undefined (reading 'match')\n at handleSuccess (https://dhqbrvplips7x.cloudfront.net/scripter/2903-2903/1362.bundle.js:13612:29)\n at r (https://dhqbrvplips7x.cloudfront.net/scripter/2903-2903/bundle.js:2525:9669)\n at i._settlePromiseFromHandler (https://dhqbrvplips7x.cloudfront.net/scripter/2903-2903/bundle.js:2524:14830)\n at i._settlePromise (https://dhqbrvplips7x.cloudfront.net/scripter/2903-2903/bundle.js:2524:15633)\n at i._settlePromise0 (https://dhqbrvplips7x.cloudfront.net/scripter/2903-2903/bundle.js:2524:16334)\n at i._settlePromises (https://dhqbrvplips7x.cloudfront.net/scripter/2903-2903/bundle.js:2524:17689)\n at c (https://dhqbrvplips7x.cloudfront.net/scripter/2903-2903/bundle.js:2523:1333)\n at a (https://dhqbrvplips7x.cloudfront.net/scripter/2903-2903/bundle.js:2523:1272)\n at r._drainQueues (https://dhqbrvplips7x.cloudfront.net/scripter/2903-2903/bundle.js:2523:2882)\n at drainQueues (https://dhqbrvplips7x.cloudfront.net/scripter/2903-2903/bundle.js:2523:1014)\n at nrWrapper (PureCloud Scripter)"
}
}

It's unclear what this is coming from, but that error means that where you're trying to access the property match, the object is undefined. So you have some code somewhere that says something like myobject.match and myobject is undefined.

i have created a Custom Action where I am calling Genesys Cloud DA on click of a button on Agent Script. It is returning the above error and the toast says : Unknown Error instead of successful execution.

If that's not your code, please open a case with Genesys Cloud Care to investigate the error in the base product.

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