PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Properties specific to the description of sfDeleteResult variables
  • Functions that handle the sfDeleteResult type
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
sfDeleteResult (Type of variable)
In french: sfDeleteResult
The sfDeleteResult type is used to find out the result of SFDelete. The characteristics of this result are returned by several WLanguage properties.
Remark: See Declaring a variable for more details on the declaration of this type of variable and the use of WLanguage properties.
Versions 20 and later
WINDEVLinux This type of variable is now available for WINDEV applications in Linux.
iPhone/iPad This type of variable is now available for iPhone/iPad applications.
New in version 20
WINDEVLinux This type of variable is now available for WINDEV applications in Linux.
iPhone/iPad This type of variable is now available for iPhone/iPad applications.
WINDEVLinux This type of variable is now available for WINDEV applications in Linux.
iPhone/iPad This type of variable is now available for iPhone/iPad applications.
Example
// Connexion à Salesforce
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.Subject
Trace("---- Type: " + MonEnregistrement.ObjectType + " | ID: " + MonEnregistrement.ID)
Trace(MonEnregistrement.Date__c + " / " + ...
MonEnregistrement.Miles__c + " / " + MonEnregistrement.Contact__c)
END
 
// Suppression d'un objet
tabSuppr is array of strings
Add(tabSuppr, ResRequête.Subject[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
Remarks

Properties specific to the description of sfDeleteResult variables

The following properties can be used to handle the result of SFDelete:
Property nameType usedEffect
ErrorArray of sfErrorStatus report of errors.
IDCharacter stringSalesforce identifier of the deleted record.
This property is available in read-only mode.
SuccessBoolean
  • True if the deletion was performed,
  • False if an error occurred.

Functions that handle the sfDeleteResult type

Versions 14 and later
SFDelete
New in version 14
SFDelete
SFDelete
Deletes records from a Salesforce database.
Minimum version required
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment