Access response text of failed http actions in integration logs for ZIS

3 Comentários

  • Zach Anthony
    Zendesk Product Manager

    Hi Ahmed, thanks for taking the time to provide some feedback on ZIS. I can see that you've mentioned that when a HTTP action is unsuccessful (e.g. returns 400), you would like to see the response body in the integration logs.

    I can confirm that currently you are able to see the response body in the Integration Logs for a failed HTTP request when they are not wrapped by a Catch block.

    So that I can capture your feedback correctly so that we can prioritize it accordingly, is your intention to be able to have the response body stored in the ResultPath so that you can see the response body in the Integration Logs even when you use a Catch block to handle the error?

    1
  • Ahmed Zaid
    User Group Leader Community Moderator

    Hello Zach Anthony,

    Thank you so much for responding. I can indeed see the response body in the logs now if a catch block is not utilised. I am not sure if this has been added in the past year after I posted this feedback, or if I never tested an action without a catch block.

    Anyway, you understood my feedback correctly. My intention is to catch the unsuccessful response, store the response body in the result path, and continue the flow. Here is an example use case:

    Imagine a ZIS flow that enriches Zendesk user data by querying an external API to add a name and  extra identities(email/phone/twitter) to Talk or messaging users. After acquiring the data, the flow makes a POST call using custom action to the Zendesk users API and/or identities API. It is possible that the one of the identities will be already associated with the same or a different user. In both cases, the catch block will indicate an error 400, but the response body will be overwritten. I would like to parse this response body, which would tell me exactly what the problem is, and continue my flow. For example, merging duplicate users or exit successfully when no action is needed.

    I understand there are workarounds to this exact use case by making some extra API calls, but I just used it as an example.

    1
  • Zach Anthony
    Zendesk Product Manager

    Hey Ahmed, I think it's possible that this has been added in the past year after you posted this feedback, so hopefully this helps somewhat. Thanks for sharing an example use case though around being able to access the response body in the ResultPath. While I can't commit to actioning this feature request, I've noted your feature request internally and added this to our backlog. I'll be sure to reach out in future if I have any updates. 

    1

Por favor, entrar para comentar.

Powered by Zendesk