How to list archived objects sorted by a field?

SOLVE
digows
Participant

Hi,

 

I need to know which objects were deleted after a specific date.

 

Since the Search API and the old Recent Changes API don't allow return deleted data,

I need to list archived companies/contacts/deals/engagements sorted by archivedAt to keep consistency.

How to do it?

0 Upvotes
1 Accepted solution

Accepted Solutions
digows
Solution
Participant

Hi @dennisedson

 

Thanks for your reply, but this doesn't fit my need, since I have 500+ Hubspot customers and I need to sync deletion of any object type.

 

I've already discussed this with someone from Hubspot and there is no way to it for now.

The solution is to use a combination of Webhook subscriptions, API calls and rebuild the cached data from time to time.

 

I already opened a request to allow sorting in the List API calls too, which would make things much easier for both sides.

View solution in original post

0 Upvotes
3 Replies 3
dennisedson
Community Manager

Hey @digows 

I think you would need to do a get for the object and change the archived param to true.  Then your application would digest and sort as needed.

@RMones , does this seem like an appropriate way of handling this?

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
digows
Solution
Participant

Hi @dennisedson

 

Thanks for your reply, but this doesn't fit my need, since I have 500+ Hubspot customers and I need to sync deletion of any object type.

 

I've already discussed this with someone from Hubspot and there is no way to it for now.

The solution is to use a combination of Webhook subscriptions, API calls and rebuild the cached data from time to time.

 

I already opened a request to allow sorting in the List API calls too, which would make things much easier for both sides.

View solution in original post

0 Upvotes
dennisedson
Community Manager

oofta,

Yeah, I was imagining only one portal you were working on.  500+ definitely changes things...

Where did you open this request?  In the ideas board?

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