Hi, i want to change a value on deals without the record id because my customer use another field for the identification. So my question is simple, i need to know if it’s possible to use another way to change some values on a specific deals without recod ID ?
Hey, @kpignon ![]()
Thanks for your question. You are not missing an option. You’ll need to use the objectID in your calls to update those records.
One workaround is to use the Search API to search for the custom property and value your customer uses for ID. Then make a second call to the Object endpoint to update the Deal records. I’d recommend looking into the Batch endpoint — Update a batch of deals, to be more efficient with your calls.
@Teun @Mike_Eastwood @MatthiasWeber, do you have a different way to tackle a query like this?
Thanks for taking a look! — Jaycee
there is no other option - this is the way! search first - update second …
… and, as @Mike_Eastwood mentionend: if you find two - you have to handle both deals, this can help you to keep your data quality high! Just in case there should be only one deal, maybe something went wrong in the business processs and there has to be an escalation (mail / process …)
Hi @kpignon
As @Jaycee_Lewis suggested, your best option is to use the Search API to retreive the Object ID. Then you can use the Object ID to make any API calls required.
The only gotcha I can see is if your Customer’s ID Property is unique or used in multiple deals.
If the ID is unique you can set your Custom Deal Property to be unique.
If the ID is not unique you will need to handle a single object or an array of objects (and no objects).
Have fun
Mike
p.s. thanks for the mention @Jaycee_Lewis