Sort the property history based on timestamp via API

josie99
Member

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
Community Manager

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!

 

Thanks,

Dennis


We are excited to announce that the Community will be launching a weekly newsletter on November 2, 2020!
Sign up today!
0 Upvotes