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

Highlighted
New Contributor

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.

Reply
0 Upvotes
1 Reply
HubSpot Moderator

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.

Connor Barley

HubSpot Developer Support
Reply
0 Upvotes