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 sfSessionInfo variables
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
sfSessionInfo (Variable type)
In french: sfInfoSession
The sfSessionInfo type is used to get information about the current session. You can define and change the characteristics of this type of variable using different WLanguage properties.
This type of variable is used by sfConnection variables. The properties of this type are available after the call to SFConnect.
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é")
ELSE
	Trace("Id de l'utilisateur connecté : " +  Cnx.SessionInfo.UserID)
END
Properties

Properties specific to sfSessionInfo variables

The following properties can be used to handle the information about the current session:
Property nameType usedEffect
SessionIDCharacter stringSession identifier.
This property is read-only.
UserIDCharacter stringUser identifier.
This property is read-only.
UserInfosfUserInfoUser information.
This property is read-only.
SandboxModeBoolean
  • True if the "Sandbox" mode is enabled,
  • False otherwise.
This property is read-only.
PasswordExpiredBoolean
  • True if the password has expired,
  • False otherwise.
This property is read-only.
ServerURLCharacter stringServer URL.
This property is read-only.
MetadataServerURLCharacter stringURL of the meta-data server.
This property is read-only.
Minimum version required
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/28/2025

Send a report | Local help