APIs & Integrations

josie99
Member

Sort the property history based on timestamp via API

Is there a way to sort the property history of a contact based on the timestamp using API (last modified timestamp)?

 

/contacts/v1/contact/vid/{vid}/profile?propertyMode=value_and_history&sort=XX&order=DESC

 

Schema of a version array:

 

lifecyclestage: {

value: qualified,

versions: {

 { 

value: new,

source_type: CRM_UI,

source_id: INTEGRATION,

source_label: null,

timestamp: 2020-09-15T22:05:17.854+00:00,

selected: false

}}

0 Upvotes
1 Reply 1
dennisedson
HubSpot Product Team
HubSpot Product Team

Sort the property history based on timestamp via API

Hi @josie99 ,

I found something similar to what you want, but, it is using the v3 crm search API.  Would that be a possibility

Original thread with answer was submitted by @Athul_C 

 

Hope that gets you somewhere!

 

0 Upvotes