ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / Salesforce functions
  • Possible error cases:
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
Restores previously deleted Salesforce records.
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
 
ResGetDel is sfSeekDeletedResult
ResGetDel = SFSeekDeleted(Cnt, "Mileage__c", "20090101", "20090131")
 
arrRestore is array of strings
MyRecord is sfDeletedRecord
FOR EACH MyRecord OF ResGetDel.DeletedRecord
Add(arrRestore, MyRecord.ID)
END
 
ResRestore is array of sfUndeleteResult
ResRestore = SFUndelete(Cnt, arrRestore)
MyRestoredRec is sfUndeleteResult
FOR EACH MyRestoredRec OF ResRestore
Trace("ID = " + MyRestoredRec.ID)
Trace("Success = " + MyRestoredRec.Success)
END
Syntax
<Result> = SFUndelete(<Salesforce connection> , <Records to restore>)
<Result>: Array of sfUndeleteResult
Array of sfUndeleteResult variables that contains the restored records.
<Salesforce connection>: sfConnection variable
Name of sfConnection variable to use.
<Records to restore>: Array of strings
Name of the array of character strings containing the Salesforce identifiers of the records to restore.
Remarks

Possible error cases:

  • The Internet connection is not valid.
  • The authentication was not performed properly.
  • The XML response of the server cannot be read.
To find out whether an error occurred, use the ErrorOccurred variable.
Component: wd290ggl.dll
Minimum version required
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help