Skip to main content
Skip table of contents

UserInfo

A UserInfo value is a package of information of the Salesforce user that is currently running the logic. It has a set of methods providing access to various kinds of data of the user.

Every evaluation process has a single UserInfo value available to the logic, accessed through the system-generated variable "UserInfo".

Methods

getDefaultCurrencyIsoCode()

Resolves into a String that is the ISO code of the user's default currency. This value is defined only if the user's organization uses multiple currencies - in single-currency organizations the resolved value will always be null.

For example, the expression ${UserInfo.getDefaultCurrencyIsoCode() == 'EUR'} will check if the user's default currency is euro.

Using the shorthand form the expression becomes ${UserInfo.defaultCurrencyIsoCode == 'EUR'}.

getEmail()

Resolves into a String that is the user's email address.

For example, the expression ${UserInfo.getEmail()} might resolve into "dynamo.support@documill.com".

Using the shorthand form the expression becomes ${UserInfo.email}.

getFullName()

Resolves into a String that is the user's full name.

For example, the expression Hello ${UserInfo.getFullName()} would resolve into "Hello Millie Dynamoweaver" for the user whose full name is "Millie Dynamoweaver".

Using the shorthand form the expression becomes ${UserInfo.fullName}

getLocale()

Resolves into a Locale value representing the user's language and country.

For example, the expression ${UserInfo.getLocale().country} would resolve into "FI" for users that are considered to be in Finland.

Using the shorthand form the expression becomes ${UserInfo.locale.country}.

getOrgDefaultCurrencyIsoCode()

Resolves into a String that is the ISO code of the user's organization's default currency. This value is defined only if the organization uses a single currency - in multi-currency organizations the resolved value will always be null.

For example, the expression ${UserInfo.getDefaultCurrencyIsoCode()} would resolve into "EUR" for users of an organization whose default currency is euro.

Using the shorthand form the expression becomes ${UserInfo.defaultCurrencyIsoCode}.

getOrganizationId()

Resolves into a String that is the ID of the Organization record representing the user's organization.

For example, the expression ${UserInfo.getOrganizationId()} will resolve into an 18-character String fairly certainly starting with "00D".

Using the shorthand form the expression becomes ${UserInfo.organizationId}.  

getOrganizationName()

Resolves into a String that is the name of the user's organization.

For example, the expression ${UserInfo.getOrganizationName()} will resolve into "dynamo.userinfo.example" for all users whose organization name is "dynamo.userinfo.example".

Using the shorthand form the expression becomes ${UserInfo.organizationName}.

getProfileId()

Resolves into a String that is the ID of the Profile record representing the user's profile in the organization.

For example, the expression ${UserInfo.getProfileId()} could be used with one of the record-querying commands to retrieve information of the user's profile.

Using the shorthand form the expression becomes ${UserInfo.profileId}.  

getRoleId()

Resolves into a String that is the ID of the UserRole record representing the user's role in the organization. If the user doesn't have a role, the resolved value will be null.

For example, the expression ${UserInfo.getRoleId() == '00ED00000081m0DyNA'} would check if the user represents a specific role.

Using the shorthand form the expression becomes ${UserInfo.roleId == '00ED00000081m0DyNA'}.

getTimeZone()

Resolves into a String representing the user's time zone.

For example, the expression ${UserInfo.getTimeZone()} might resolve into "Europe/Helsinki" for users in the UTC +02:00 time zone.

Using the shorthand form the expression becomes ${UserInfo.timeZone}.

getUserId()

Resolves into a String that is the ID of the User record representing the user.

For example, the expression ${UserInfo.getUserId() == testerId} would check whether the user is the one that the "testerId" variable specifies.

Using the shorthand form the expression becomes ${UserInfo.userId == testerId}.

getUserName()

Resolves into a String that is the user's username, or login name.

For example, the expression ${UserInfo.getUserName()} would resolve into "millie.dynamoweaver@dynamo.userinfo.example" for a user logging in with that name.

Using the shorthand form the expression becomes ${UserInfo.userName}.

isOrgMultiCurrency()

Resolves into a Boolean "true" if the user's organization uses multiple currencies, or "false" if the organization uses a single currency.

For example, the expression ${!UserInfo.isOrgMultiCurrency()} would resolve into "true" for users of a single-currency organization.

Using the shorthand form the expression becomes ${!UserInfo.orgMultiCurrency}.  

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.