get recently modified contacts without certain properties
SOLVE
I want to get recently modified contacts via Hubspot API.
But, what makes it a little bit difficult is that we are using the Salesforce-Sync and therefore one certain contact property will be updated very often as it stores the last sync time. So I am only interested in the modified contacts where one of the other properties was changed.
Is that somehow feasible?
I think I can only use the endpoint from version 1 (/contacts/v1/lists/recently_updated/contacts/recent) but I am not sure whether the optional parameters cover that functionality.
get recently modified contacts without certain properties
SOLVE
You are looking for a query ability something like this, using birthday as an example here:
SELECT first_name,last_name FROM contacts WHERE birthday_last_modified_on > "2020/08/25"
Unfortunately we don't have this ability. Instead we have to locate recently changed records then start looping through the property list looking at the properties we are interested in. Assuming that we can easily find recently modified contacts, how are you going to know when a value has changed?
If the value was a default property then you should be able to look at the "versions" array for that property.
Do custom properties have versions? It's not obvious from the documents that they do. So for custom properties you would need to track changes yourself.
get recently modified contacts without certain properties
SOLVE
You are looking for a query ability something like this, using birthday as an example here:
SELECT first_name,last_name FROM contacts WHERE birthday_last_modified_on > "2020/08/25"
Unfortunately we don't have this ability. Instead we have to locate recently changed records then start looping through the property list looking at the properties we are interested in. Assuming that we can easily find recently modified contacts, how are you going to know when a value has changed?
If the value was a default property then you should be able to look at the "versions" array for that property.
Do custom properties have versions? It's not obvious from the documents that they do. So for custom properties you would need to track changes yourself.
You want to filter out the timestamp and get only contacts where another property has been modified. Are you concerned with any specific properties or all other properties?
Join us on March 27th at 12 PM for the Digital Essentials Lab, an interactive session designed to redefine your digital strategy!
Engage with expert Jourdan Guyton to gain actionable insights, participate in live Q&A, and learn strategies to boost your business success. Don't miss this opportunity to connect and grow—reserve your spot today!
thanks for your answers. You both understood my problem correctly 🙂
As @malcolm1 said, I can locate recently changed records with one of the given api endpoints and then start looping through the property list to find the ones that have been changed. But as contacts get synced with Salesforce and therefore one of the custom properties (salesforse_last_sync) will change (almost) every day, this endpoint is useless for me. It will return an immensely large number of contacts and take too much time to identify only contacts where another property has been modified.
@dennisedson : It would be nice to have the ability to request only changes for certain properties (default and custom properties), but it would already help me to exclude this one 😉