You need to sign in to do that
Don't have an account?
gubs
Can we do rollback ?
I have to update Opportunity and Opportunity line item detail into sforce.com from my application. When i update one of the line item into sforce.com and if it fails for some reason can i rollback the whole SObject ?
Thanks,
Gubs
Here is winter'11 webservice api doc:
http://www.salesforce.com/us/developer/docs/api/index.htm
AllOrNoneHeader is explained here :
http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_header_allornoneheader.htm
All Answers
Changed Calls
Winter'11 added these features to web services.
Changed CallsWith API version 20.0, you can process records for multiple object types, including custom objects, in one create()or update() call. For example, you can create a contact and an account in one call. Previously, you could only processrecords for one object type in a call. You can process records for up to 10 objects types in one call
New AllOrNoneHeader SOAP Header
The AllOrNoneHeader header allows the create(), delete(), undelete(), update(), and upsert() calls to
roll back all changes unless all records are processed successfully. The default behavior is to allow partial success of a call:
So combining AllorNoneHeader with new create/update calls that can now take sobjects of diff types should help.
Thanks. Is there a url i can get more details about the API with some details and examples for the same ?
Gubs
Here is winter'11 webservice api doc:
http://www.salesforce.com/us/developer/docs/api/index.htm
AllOrNoneHeader is explained here :
http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_header_allornoneheader.htm
Thanks. It helps