NULLable properties in the CRM Extensions API

Occasional Contributor

How can I send NULL values for datetime properties in the CRM cards. Sending NULL breaks the entire cards API.

 

I am using Hubspot's CRM Extensions API to create CRM cards on Contact pages.

Some of the properties are datetimes that can be NULL. 

 

In case they are NULL, Hubspot fails to display the entire card with an error message.

 

Reply
0 Upvotes
1 Reply 1
Highlighted
Community Manager

Hey @rtindru,

 

Instead of sending NULL, try passing a blank empty string "". While this won't show dt: null, it'll display the entire card just fine and shows the following

 

dt: Invalid property

(In this case, dt is the datetime property)

 

Let me know if this works for you.

 

Reply
0 Upvotes