Hello,
I want to update existing deals, for this purpose, I have created a unique field property in deals, and based on that I need to upsert the new deals.
I thought of using
` https://api.hubapi.com/crm/v3/objects/deals/abc?idProperty=system_a_unique` this API to get the deal based on the unique property and value but this reaches the maximum limit,
and for update deals API, I need the ID from hubspot which needs to be sent along with the deals.
what can be the best way to upsert the deals and other objects like tickets, quotes, etc.
Thank you
Making sure I am reading this correctly.
You have a custom property that you have added to some of your deals. You want to find the deals with that property added to it and update the deal somehow.
A couple of thoughts come to mind.
Option 1: use the search crm endpoint and filter to those with a value in that property. This will return the ids of the object records. With this, you can then use the patch method on the object to update the record.
Option 2: use a webhook to subscribe to changes to that custom property. The webhook will return a payload including the id from which you can use step 2 of the previous option to update the record
Hey, thanks for the solution, the search API works fine. ![]()