ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Communication / Salesforce functions
  • Properties specific to sfExecuteQueryResult variables
  • Functions that use the sfExecuteQueryResult type
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
sfExecuteQueryResult (Variable type)
In french: sfRésultatExécuteRequête
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.
Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
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
Properties

Properties specific to sfExecuteQueryResult variables

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

Functions that use the sfExecuteQueryResult type

SFExecuteQueryRuns an SOQL query (Salesforce Object Query Language) on a Salesforce database.
SFForwardQueryContinues 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

Last update: 09/20/2024

Send a report | Local help