SaveResult

The create() call returns an array of SaveResult objects. Each element in the SaveResult array corresponds to the sObject[] array passed as the sObjects parameter in the create() call. For example, the object returned in the first index in the SaveResult array matches the object specified in the first index of the sObject[] array. A SaveResult object has the following properties:

Name Type Description
id ID ID of the sObject that you attempted to create(). If this field contains a value, then the object was created successfully. If this field is empty, then the object was not created and the API returned error information instead.
success boolean Indicates whether the create() call succeeded (true) or not (false) for this object.
errors Error[] If an error occurred during the create() call, an array of one or more Error objects providing the error code and description.
© Copyright 2000-2009 salesforce.com, inc. All rights reserved.
Various trademarks held by their respective owners.