Hi,
Not sure if you have control on the web service. If you have it that will help else you need to create an adaptor.
As you are already aware inputs and outputs are configured on genesys cloud for data actions and they have a specific schema defined during configuration before using it. So capturing response is driven by schema
Say your web services has a schema defined in way to return a placeholder for capturing both success and failure then you can get user defined errors returned.
For example:
If web services returns just "result" property alone now will not help. Rather if you have result and additional properties like ErrorCode and ErrorDetails. Then you can have these value set as empty against ErrorCode and ErrorDetails for a successful call and set returned failed responses in case of user defined failure which will meet your expectations i.e. Overall output schema will not change
------------------------------
Mohan
------------------------------
Original Message:
Sent: 02-20-2023 02:05
From: ANITHA ME
Subject: Genesys cloud Web service data action
Hello, I am trying to configure failure output i.e Error code and error message as output response in Genesys cloud webservice. Requesting to provide the solution on the same.
Ex: If i pass the wrong input (Invalid Case number) then in response it will show as "Invalid Case number"(error code) and in "message" also. We need to capture these error code and message.
#Integrations
------------------------------
ANITHA ME
Accenture Solutions Private Limited
------------------------------