Skip to main content
Question

Handling Missing Variables in Custom Action POST Request to Prevent Failure


Hi everyone,

I’m working with a Custom Action in Intercom, where I send a POST request that includes a variable from the conversation data. However, sometimes this variable is missing for certain conversations, which causes the POST request to fail.

Is there a way to create a fallback or default value for such variables in the request body to prevent the failure?

For example, here’s my current setup:

If data is not available, how can I ensure the request still goes through, possibly by setting a default value (like null or a placeholder string)?

Any advice or examples specific to handling this in a Custom Action would be greatly appreciated.

0 replies

Be the first to reply!

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings