|
|
|
|
|
- Properties specific to sfUndeleteResult variables
- WLanguage functions that use the sfUndeleteResult type
sfUndeleteResult (Type of variable) In french: sfRésultatRestaure
The sfUndeleteResult type is used to find out the result of SFUndelete. The characteristics of this result are returned by several WLanguage properties. Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable. // Connect to Salesforce Cnt is sfConnection Cnt.Login = "balthazar@gmail.com" Cnt.Password = "qwerty" + "XXB12VCZ54" IF SFConnect(Cnt) = False THEN Error("The connection failed") RETURN END Â ResGetDel is sfSeekDeletedResult ResGetDel = SFSeekDeleted(Cnt, "Mileage__c", "20090101", "20090131") Â arrRestore is array of strings MyRecord is sfDeletedRecord FOR EACH MyRecord OF ResGetDel.DeletedRecord Add(arrRestore, MyRecord.ID) END Â ResRestore is array of sfUndeleteResult ResRestore = SFUndelete(Cnt, arrRestore) MyRestoredRec is sfUndeleteResult FOR EACH MyRestoredRec OF ResRestore Trace("ID = " + MyRestoredRec.ID) Trace("Success = " + MyRestoredRec.Success) END
Remarks Properties specific to sfUndeleteResult variables The following properties can be used to handle the result of SFUndelete: | | | Name | Type used | Effect |
---|
Error | Array of sfError | Status report of errors. | ID | Character string | Salesforce identifier of the restored record. This property is read-only. | Success | Boolean | - True if the restore operation was performed,
- False otherwise.
This property is read-only. |
WLanguage functions that use the sfUndeleteResult type - Standard syntax:
| | SFUndelete | Restores previously deleted Salesforce records. |
- Prefix syntax:
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|