APIs & Integrations

rtindru
Miembro

NULLable properties in the CRM Extensions API

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.

 

0 Me gusta
3 Respuestas 3
arth
Colaborador

NULLable properties in the CRM Extensions API

Hi @WendyGoh and Community!

 

Wendy, tbh your solution works BUT not in the way I expect 😄

So main issue that I push some data into Custom CRM Card, and it contains some dt fields. 2 of them always have some dt values but the issue with the 3rd one which in the most cases won't have a value, and before it showed Invalid property in the card - which looked weird and from end user perspective as something has been broked.

 

After I start to push blanks '' to that field it started to look as showed bellow:

Closure Date: Thursday, 1 January 1970 00:00

 

For closure date, it's confusing. The question is: is there any chance we can push empty dt values so in UI it would show just empty field?

0 Me gusta
DBarbakadze
Miembro

NULLable properties in the CRM Extensions API

Were you able to solve this in any satisfiable way?

0 Me gusta
WendyGoh
HubSpot Employee
HubSpot Employee

NULLable properties in the CRM Extensions API

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.

 

0 Me gusta