PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Properties specific to the description of sfExecuteQueryResult variables
  • Functions that handle the sfExecuteQueryResult 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
sfExecuteQueryResult (Type of variable)
In french: sfExecuteQueryResult
The sfSaveResult type is used to find out the result of SFForwardQuery and SFExecuteQuery. The characteristics of this result are returned by several WLanguage properties.
Remark: See Declaring a variable for more details on the declaration of this type of variable and the use of WLanguage properties.
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
 
// Récupération de données
ResRequête is sfExecuteQueryResult
ResRequête = SFExecuteQuery(Cnx, "SELECT Date__c, Miles__c, Contact__c FROM Mileage__c")
 
UnEnregistrement is sfObject
FOR EACH UnEnregistrement OF ResRequête.Subject
 Trace("---- Type: " + UnEnregistrement.ObjectType + " | ID: " + UnEnregistrement.ID)
 Trace(UnEnregistrement.Date__c + " / " + UnEnregistrement.Miles__c + " / " + ...
UnEnregistrement.Contact__c)
END
Remarks

Properties specific to the description of sfExecuteQueryResult variables

The following properties can be used to handle the result of SFForwardQuery and SFExecuteQuery:
nomType usedEffect
DoneBoolean
  • True if the query was entirely run,
  • False otherwise.
This property is useful when running SFForwardQuery.
This property is available in read-only mode.
QueryLocatorCharacter stringQuery location. This property is useful when running SFForwardQuery.
This property is available in read-only mode.
ObjetArray of sfObjectSalesforce records corresponding to the result of the query.
SizeIntegerNumber of records corresponding to the result.
This property is available in read-only mode.

Functions that handle the sfExecuteQueryResult type

Versions 14 and later
SFExecuteQuery
New in version 14
SFExecuteQuery
SFExecuteQuery
Runs an SOQL query (Salesforce Object Query Language) on a Salesforce database.
Versions 14 and later
SFForwardQuery
New in version 14
SFForwardQuery
SFForwardQuery
Continues to run a SOQL query (Salesforce Object Query Language) on the records of a Salesforce database.
Minimum version required
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment