PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Properties specific to the description of sfEmptyRecycleBinResult variables
  • Functions that handle the sfEmptyRecycleBinResult 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
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.
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
// 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 the description of sfEmptyRecycleBinResult variables

The following properties can be used to handle the result of SFEmptyRecycleBin:
Property nameType usedEffect
ErrorArray of sfErrorStatus report of errors.
IDCharacter stringSalesforce identifier of the record deleted from the recycle bin.
This property is available in read-only mode.
SuccessBoolean
  • True if the recycle bin was deleted,
  • False otherwise.
This property is available in read-only mode.

Functions that handle the sfEmptyRecycleBinResult type

Versions 14 and later
SFEmptyRecycleBin
New in version 14
SFEmptyRecycleBin
SFEmptyRecycleBin
Clears the specified records from the Salesforce recycle bin.
Minimum version required
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment