Bug Report - GET /crm/v3/objects/companies/{companyId} with hs_last_sales_activity_date field

Steps to reproduce:

1. Issue a GET (/crm/v3/objects/companies/{companyId}) against a company that has

hs_last_sales_activity_date

set. Include

hs_last_sales_activity_date

in the properties array.

Expected:

hs_last_sales_activity_date

comes back with proper data.

Actual:

hs_last_sales_activity_date

is coming back way off, usually something like “1970-01-19T15:52:57.611Z” when the year is expected in 2020 or 2021.

@pphillips

Thanks for reporting. I am able to reproduce and will get this to the team.

Thanks!!

@pphillips ,

The team has addressed this. The tl;dr is basically this property was replaced with hs_last_sales_activity_timestamp and the hs_last_sales_activity_date is now deprecated, but it was never removed.

That property uses seconds rather than milliseconds. We have updated the description of it if you hit the properties endpoint.

“description”: “The date of the last sales activity with the company in seconds.”

I would recommend abandoning that property for the newer one which acts more consistently with other properties work

Thanks again for bringing this to us!

Hi, I have 2000 companies in the API that return a non-null `hs_last_sales_activity_date` and a null `hs_last_sales_activity_timestamp`. 8000 other companies return a timestamp as expected. Shouldn’t the timestamp always be present if the date is present?