|
|
|
|
|
- Properties specific to sfEmptyRecycleBinResult variables
- Functions that use the sfEmptyRecycleBinResult type
sfEmptyRecycleBinResult (Variable type) In french: sfResultatVideCorbeille
The sfEmptyRecycleBinResult type is used to find out the result of SFEmptyRecycleBin. The characteristics of this result can be known via several 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
ResRequête is sfExecuteQueryResult
ResRequête = SFExecuteQuery(Cnx, "SELECT Date__c,Miles__c,Contact__c FROM Mileage__c")
MonEnregistrement is sfObject
FOR EACH MonEnregistrement OF ResRequête.Object
Trace("---- Type : " + MonEnregistrement.Type+" | ID : " + MonEnregistrement.ID)
Trace(MonEnregistrement.Date__c + " / " + MonEnregistrement.Miles__c + " / " + ...
MonEnregistrement.Contact__c)
END
tabSuppr is array of strings
Add(tabSuppr, ResRequête.Object[1].ID)
ResSuppr is array of sfDeleteResult
ResSuppr = SFDelete(Cnx, tabSuppr)
FOR EACH res OF ResSuppr
Trace("ID : " + res.ID + " - Suppression = " + res.Succès)
END
ResVideCorb is array of sfEmptyRecycleBinResult
ResVideCorb = SFEmptyRecycleBin(Cnx, tabSuppr)
FOR EACH res OF ResVideCorb
Trace("ID : " + res.ID + "- VideCorbeille = " + res.Succès)
END
Properties Properties specific to sfEmptyRecycleBinResult variables | | | Property name | Type used | Effect |
---|
Error | Array of sfError | Status report of errors. | ID | Character string | Salesforce identifier of the record deleted from the recycle bin. This property is read-only. | Success | Boolean | - True if the recycle bin was deleted,
- False otherwise.
This property is read-only. |
Remarks Functions that use the sfEmptyRecycleBinResult type
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|