ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / Salesforce functions
  • Properties specific to the description of sfSessionInfo variables
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
sfSessionInfo (Type of variable)
In french: sfInfoSession
The sfSessionInfo type is used to get information about the current session. The characteristics of this type of variable can be defined and changed using different WLanguage properties.
This type of variable is used by the sfConnection variables. The properties of this type are available after the call to SFConnect.
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")
ELSE
Trace("ID of the connected user: " + Cnt.SessionInfo.UserID)
END
Remarks

Properties specific to the description of 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.
UserInfosfUserInfoInformation regarding the user. 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: 08/24/2022

Send a report | Local help