You need to sign in to do that
Don't have an account?
Milan
Commit and Rollback
Hello,
We are supposed to Create leads / contacts in Salesforce using Partner WSDL. There may be times when we will be creating more than 5000 leads. So we will be invoking multiple creates (depending upon the batch size).
Now, if there is any error in any one of the subsequent calls. How can I rollback the earlier data that was inserted into Salesforce ?
I tried searching the docs and also some old postings on the forum and it seems that this feature is not available... :( I hope I am wrong .
Thanks,
Milan
Thanks for the ever quick reply. So what is a compensating transaction. Can you pelase point me to some reference implementations / docs etc.
regards,
Milan
Thanks Simon.
Yes, we really need the feature of ROLLBACK.
We are designing a tool wherein various salesforce users will use our tool to get leads. Once they have decided on the leads that are of their interest we will directly update them in their Salesforce account. Now, at this time it is very important for us to ensure that we deliver EVERYTHING that the user wants or deliver NOTHING.
We are highly against the idea of deleting ANYTHING (even if it is inserted by us) in someone else's account (for obvious reasons ). Thus I am not sure delete is an option in lieu of Rollback.
I am slightly sirprised that this feature isnt provided ;) but I am new and maybe you have a point that its not required most of the time. But unfortunately it seems that this time we require the feature of rollback and commit.
Thanks for all the suggestions.I appreciate it.
Regards,
Milan
External transaction control that spans multiple requests over the internet is just a deadlock nightmare waiting to happen, I don't expect that anyone is going to offer these kinds of capabilities in an internet hosted service.