ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Communication / Salesforce functions
  • Properties specific to sfUndeleteResult variables
  • WLanguage functions that use the sfUndeleteResult type
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
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.
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

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:
NameType usedEffect
ErrorArray of sfErrorStatus report of errors.
IDCharacter stringSalesforce identifier of the restored record.
This property is read-only.
SuccessBoolean
  • True if the restore operation was performed,
  • False otherwise.
This property is read-only.
Remarks

WLanguage functions that use the sfUndeleteResult type

Minimum version required
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help