Data Action: Failure outputs not being captured

Hello,

I am implementing a common module task. This task uses Custom Data Actions to reach out to a 3rd party web service. This all works great when the API returns a success response, however they are some failure responses that I would like to handle in the common module.

The "Failure Outputs" seems like the right way to capture the HTTP status code and any other information, however in my testing the assigned variables are not being populated.

I assume there is something I am missing however it is not clear or easy to troubleshoot why they are not being assigned. When I try to "Play Audio" the values they are just coming back empty.

Any thoughts or suggestions? Below is my Failure Outputs section, and in the failed branch is where I try to play each response value.

image

This is a specific limitation in voice IVRs. I believe that this works correctly for other flow types. I suggest you open up an idea for resolving this: https://genesyscloud.ideas.aha.io/

--Jason

Hello Jason,

In my organization we have the same problem. We believe that this should not be treated as a new feature but as a bug.
Is there an alternative method to retrieve an HttpStatusCode from a failing DataAction?

Thx!

I can definitely see how you would consider this a bug. To pursue this as a bug you will need to open up a support case as the developer forums are not part of support.

As to options. If this endpoint is under your control you could change it to always return a 200 response code, but indicate in the response if it actually worked or not. If this endpoint is not something you can change the only approach that I know of is to add a middleware layer to always return a 200, with the actual response inside.

--Jason

Thank you very much Jason for your help.
The idea of the middleware layer is good, unfortunately, we cannot implement it in our case.
We proceed to open a ticket.
Thanks again.

Regards,

RCC

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