|
|
|
|
<sfConnection variable>.Undelete (Function) In french: <Variable sfConnexion>.Restaure Restores previously deleted Salesforce records. // Connect to Salesforce Cnt is sfConnection Cnt.Login = "balthazar@gmail.com" Cnt.Password = "qwerty" + "XXB12VCZ54" IF Cnt.Connect() =False THEN Error("The connection failed") RETURN END Â ResGetDel is sfSeekDeletedResult ResGetDel = Cnt.SeekDeleted("Mileage__c", "20090101", "20090131") Â arrRestore is array of strings MyRecord is sfDeletedRecord FOR EACH MyRecord OF ResGetDel.DeletedRecord arrRestore.Add(MyRecord.ID) END Â ResRestore is array of sfUndeleteResult ResRestore = Cnt.Undelete(arrRestore) MyRestoredRec is sfUndeleteResult FOR EACH MyRestoredRec OF ResRestore Trace("ID = " + MyRestoredRec.ID) Trace("Success = " + MyRestoredRec.Success) END
Syntax
<Result> = <Salesforce connection>.Undelete(<Records to restore>)
<Result>: Array of sfUndeleteResult Array of sfUndeleteResult variables that contains the restored records. <Salesforce connection>: sfConnection variable Name of sfConnection variable to use. <Records to restore>: Array of strings Name of the array of character strings containing the Salesforce identifiers of the records to restore. Remarks Possible error cases: - The Internet connection is not valid.
- The authentication was not performed properly.
- The XML response of the server cannot be read.
To find out whether an error occurred, use the ErrorOccurred variable.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|