function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SFNewSFNew 

Get update errors from SOAP Response

Hello All,

              I am implementing a client using the API. I am getting the response back from SF as mentioned in the document. i.e. Successful updates have the SF Ids returned, but for the failed ones  we get only an error message. This forces us to look at the data either from the input or from the screen for the failures. We cannot decide an order of update on the client side since we do not know what order the SF server is responding. Is there any way to get around this problem or in short can I get the Ids of the errored updates. Any help in this regard would be extremely helpful to me. Thanks all. 

SuperfellSuperfell
the order of the SaveResults is the same order as the request rows, i.e. if your request has updates for A,B,C,D, and the response says success,success,error,success, you know the error is for C
SFNewSFNew
Thanks much Simon. Thats the pattern I observed but had doubts about it t:smileyhappy:hough.