|
|
|
|
|
- Properties specific to sfDeleteResult variables
- Functions that handle the sfDeleteResult type
sfDeleteResult (Type of variable) In french: sfResultatSupprime
The sfDeleteResult type is used to find out the result of SFDelete. 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 Â 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.ObjetType + " | 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
Remarks Properties specific to sfDeleteResult variables The following properties can be used to handle the result of SFDelete: | | | Property name | Type used | Effect |
---|
Error | Array of sfError | Status report of errors. | ID | Character string | Salesforce identifier of the deleted record. This property is read-only. | Success | Boolean | - True if the deletion was performed,
- False if an error occurs.
|
Functions that handle the sfDeleteResult type | | SFDelete | Deletes records from a Salesforce database. |
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|