ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / Salesforce functions
  • Properties specific to the description of sfUserInfo 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
sfUserInfo (Type of variable)
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.
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("Name of connected user: " +  ...
  Cnt.SessionInfo.UserInfo.FullName)
END
Remarks

Properties specific to the description of 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 the 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 the French Canada: "fr_CA".
This property is read-only.
Caution: Before version 170078, this property was named "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 the 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: 08/24/2022

Send a report | Local help