|
|
|
|
|
- Properties specific to sfUndeleteResult variables
- WLanguage functions that use the sfUndeleteResult type
sfUndeleteResult (Variable type) 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. Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Cnx is sfConnection
Cnx.Login = "balthazar@gmail.com"
Cnx.Password = "azerty" + "XXB12VCZ54"
IF SFConnect(Cnx) = False THEN
Error("La connexion a échoué")
RETURN
END
ResRecupSuppr is sfSeekDeletedResult
ResRecupSuppr = SFSeekDeleted(Cnx, "Mileage__c", "20090101", "20090131")
tabRestaure is array of strings
MonEnregistrement is sfDeletedRecord
FOR EACH MonEnregistrement OF ResRecupSuppr.DeletedRecord
Add(tabRestaure, MonEnregistrement.ID)
END
ResRestaure is array of sfUndeleteResult
ResRestaure = SFUndelete(Cnx, tabRestaure)
MonEnregRestauré is sfUndeleteResult
FOR EACH MonEnregRestauré OF ResRestaure
Trace("ID = " + MonEnregRestauré.ID)
Trace("Succès = " + MonEnregRestauré.Success)
END
Properties 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. |
Remarks WLanguage functions that use the sfUndeleteResult type - Standard syntax:
| | SFUndelete | Restores previously deleted Salesforce records. |
- Prefix syntax:
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|