You need to sign in to do that
Don't have an account?
Jeps
API create call sending 200 records. How to determine what specific record failed to get created
Hi:
I'm using create() API call sending sObjects[] about 200 case objects at one call. If there are any failed records.
1) How do I determine which specific records failed to get created in Salesforce?
2) Is there are detailed information about the failed record from the SaveResults object?
Thanks,
Jay
Superfell
create returns an array of SaveResult objects, one for each item in the request, it include the id of the newly created item or an error code & message.
Jeps
Simon:
So does array index 0 of SaveResult match with the array index 0 that i sent?
-Jay
Superfell
Yes, the arrays are positionally matched.