PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Properties specific to the description of sfUndeleteResult variables
  • Functions that handle the sfUndeleteResult type
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
sfUndeleteResult (Type of variable)
In french: sfRésultatRestaure (Type de variable)
The sfUndeleteResult type is used to find out the result of SFUndelete. The characteristics of this result are returned by several WLanguage properties.
Note: 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
Linux This type of variable is now available for the WINDEV applications in Linux.
New in version 20
Linux This type of variable is now available for the WINDEV applications in Linux.
Linux This type of variable is now available for the WINDEV applications in Linux.
Example
// Connect to Salesforce
Cnt is sfConnection
Cnt..Login = "vince@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
Remarks

Properties specific to the description of 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 available in read-only.
SuccessBoolean
  • True if the restore operation was performed,
  • False otherwise.
This property is available in read-only.

Note: These properties can be used with one of the following syntaxes:
  • <Variable name>..<Property name>
  • <Variable name>.<Property name>

Functions that handle the sfUndeleteResult type

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