|
|
|
|
- Properties specific to sfEmptyRecycleBinResult variables
- Functions that handle the sfEmptyRecycleBinResult type
sfEmptyRecycleBinResult (Type of variable) 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 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 ResQuery is sfExecuteQueryResult ResQuery = SFExecuteQuery(Cnt, "SELECT Date__c,Miles__c,Contact__c FROM Mileage__c") MyRecord is sfObject FOR EACH MyRecord OF ResQuery.Object Trace("---- Type: " + MyRecord.Type+" | ID: " + MyRecord.ID) Trace(MyRecord.Date__c + " / " + MyRecord.Miles__c + " / " + ... MyRecord.Contact__c) END // Delete an object arrDel is array of strings Add(arrDel, QueryRes.Object[1].ID) ResDel is array of sfDeleteResult ResDel = SFDelete(Cnt, arrDel) FOR EACH res OF ResDel Trace("ID: " + res.ID + " - Deletion = " + res.Success) END ResEmptyBin is array of sfEmptyRecycleBinResult ResEmptyBin = SFEmptyRecycleBin(Cnt, arrDel) FOR EACH res OF ResEmptyBin Trace("ID: " + res.ID + "- EmptyRecycleBin = " + res.Success) END
Remarks 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. |
Functions that handle the sfEmptyRecycleBinResult type
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|