Handling Empty Datetime Variable in Custom Action to Prevent Failure | Community
Skip to main content
Question

Handling Empty Datetime Variable in Custom Action to Prevent Failure

  • March 24, 2026
  • 0 replies
  • 6 views

I’m using a Custom Action with some Datetime elements.

Whenever I have empty element I send the response back to Intercom using something like this:

"0000-00-00T00:00:00+04:00",

When I test the Custom Action, the “Test response” brings back exactly this Datetime format, and it gives me a 200 OK.

Same for “Data transformation” and “Object Mapping”, all OK.

However, in production, we are getting several errors. The Intercom Logs of this Custom Action suggest the Mapping is not happening (when the request and response are 200 OK). The only different data I saw between a Log with a mapping and a Log without the mapping was an “empty” Datetime, like the one above.
 
What’s the proper way of sending an Empty Datetime?