APIs & Integrations

kun_lu
Membre

For Hubspot API, is there a "transaction" concept?

Hi,

I am using Hubspot API to do some update to our CRM data. I did them sucessfully by calling API.

I am wondering, is there a "transaction" concept when I do more than one update together? For example, I create a contact for a company, then update a property of the company. If the second step fail, I want to revert the first step. What is the best way to do this?

Thanks.

0 Votes
1 Réponse
cbarley
Ancien salarié HubSpot
Ancien salarié HubSpot

For Hubspot API, is there a "transaction" concept?

Hi @Kun_Lu, There's no built in property, per-se, that you could track that could enable you to do this. That said, you could use the response code that our server sends back as a condition in order to know if you should proceed, or delete your original contact. I'd say this is really your only feasible solution in this case.

0 Votes