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 sfUserInfo variables
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
sfUserInfo (Variable type)
In french: sfInfoUtilisateur
The sfUserInfo type is used to get information about a user. The characteristics of this type of variable are returned by several WLanguage properties.
This type is used by sfSessionInfo variables. The properties of this type are filled 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("Nom de l'utilisateur connecté : " +  ...
			  Cnx.SessionInfo.UserInfo.FullName)
END
Properties

Properties specific to sfUserInfo variables

The following properties can be used to handle the information regarding a Salesforce user:
Property nameType usedEffect
UserDefaultCurrencyIsoCodeCharacter stringISO code of the default currency used by the user.
This property is read-only.
OrganizationDefaultCurrencyISOCodeCharacter stringISO code of the default currency used by the company.
This property is read-only.
EmailCharacter stringUser's email address.
This property is read-only.
TimeZoneCharacter stringTime zone of the user.
This property is read-only.
ProfileIDCharacter stringIdentifier of the user profile.
This property is read-only.
RoleIDCharacter stringIdentifier of the position (role) occupied by the user in the company.
This property is read-only.
OrganizationIDCharacter stringIdentifier of the company.
This property is read-only.
UserIDCharacter stringUser identifier.
This property is read-only.
LanguageCharacter stringLanguage of the user. This parameter defines the language used for the captions of the controls in the application. The first two characters represent the ISO code of the language. These characters are followed by an underscore character (_) then by the ISO code of the country.
  • Example for the USA: "en_US".
  • Example for French Canada: "fr_CA".
This property is read-only.
UsernameCharacter stringUsername.
This property is read-only.
AccessibilityModeBoolean
  • True if the accessibility mode for the unsighted users is enabled,
  • False otherwise.
This property is read-only.
OrganizationMultiCurrencyBoolean
  • True if the company uses several currencies,
  • False otherwise.
This property is read-only.
FullNameCharacter stringFull name of the user.
This property is read-only.
OrganizationNameCharacter stringName of the user organization or company.
This property is read-only.
RegionalSettingsCharacter stringLanguage used to define the regional settings (format of dates, symbols of currencies). The first two characters represent the ISO code of the language. These characters are followed by an underscore character (_) then by the ISO code of the country.
  • Example for the USA: "en_US".
  • Example for French Canada: "fr_CA".
This property is read-only.
Attention: Prior to version 170078, this property was called "Region".. It was renamed from version 170078.
RegionCharacter stringProperty kept for backward compatibility. Starting with version 170078, it is recommended to use the RegionalSettings property.
Language used to define the regional settings (format of dates, symbols of currencies). The first two characters represent the ISO code of the language. These characters are followed by an underscore character (_) then by the ISO code of the country.
  • Example for the USA: "en_US".
  • Example for French Canada: "fr_CA".
This property is read-only.
CurrencySymbolCharacter stringSymbol of the currency used.
This property is read-only.
UISkinCharacter stringTheme used for the interface. Can correspond to:
  • "Theme1" if the user uses the interface named "Salesforce Classic".
  • "Theme2" if the user uses the interface named "Salesforce".
This property is read-only.
UserTypeCharacter stringType of user license assigned to the profile associated with the user.
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