ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / Salesforce functions
  • Properties specific to sfSearchResult variables
  • Functions that use the sfSearchResult 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
sfSearchResult (Type of variable)
In french: sfRésultatRecherche
The sfSearchResult type is used to find out the result of SFSearch. The characteristics of this result are returned by several WLanguage properties.
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
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
 
Res is sfSearchResult
Res = SFSearch(Cnt, "FIND {""John Smith""} IN NAME FIELDS")
 
MyRecord is sfObject
 
FOR EACH MyRecord OF Res.Object
Trace(MyRecord.ID)
END
Remarks

Properties specific to sfSearchResult variables

The following properties can be used to handle the result of SFSearch:
Property nameType usedEffect
ObjectArray of sfObjectSalesforce records corresponding to the result of the search.

Functions that use the sfSearchResult type

SFSearchPerforms a search among the records found in a Salesforce database.
Minimum version required
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 01/26/2023

Send a report | Local help