I’m trying to setup a webhook to some system, but I would like to log the errors I received, as those are actually something I want to process in Foundry.
How can I allow-list, for example, the HTTP Code 503, so that even if the response to the webhook is a 503 it will still consider it as a “success” and continue its execution ?
What you’re describing is not fully supported currently, though one pattern we’ve seen people use to achieve similar functionality is to wrap the webhook in a typescript function, and create error result ontology objects that can be actioned on later.
Hey @jett, this is what we did and this works perfectly. Thanks for the reco.
This was useful to be able to store and parse failure responses, an this was also useful to factorize our code and overall workflow architecture by having one single function (send to Salesforce) that calls different webhooks based on specific object property values (wether it’s a ticket or a question case or some specific question cases that have a dedicated endpoint).
This then allowed us to go from 3 Automations to only 1 and get a more maintainable flow.