salesforce 获取当前用户的信息

getDefaultCurrency()
Returns the context user's default currency code for multiple currency organizations or the organization's currency code for single currency organizations.
getFirstName()
Returns the context user's first name//返回当前用户的first name
getLanguage()
Returns the context user's language//返回当前用户的 语言,中文或者英文 或者其他的语言。
getLastName()
Returns the context user's last name//返回当前用户的last name
getLocale()
Returns the context user's locale.//
getName()
Returns the context user's full name. The format of the name depends on the language preferences specified for the organization.
//返回当前用户的全名,名字的格式由组织所在的地区决定。
getOrganizationId()
Returns the context organization's ID.
getOrganizationName()
Returns the context organization's company name.
getProfileId()
Returns the context user's profile ID.
//返回profiel的id
getSessionId()
Returns the session ID for the current session.
getTimeZone()
Returns the current user’s local time zone.
getUiTheme()
Returns the default organization theme. Use getUiThemeDisplayed to determine the theme actually displayed to the current user.
getUiThemeDisplayed()
Returns the theme being displayed for the current user.
getUserEmail()
Returns the current user’s email address.
getUserId()//user id
Returns the context user's ID
getUserName()
Returns the context user's login name.
getUserRoleId()
Returns the context user's role ID.
getUserType()
Returns the context user's type.
isCurrentUserLicensed(namespace)
Returns true if the context user has a license to the managed package denoted by the namespace. Otherwise, returns false.
isMultiCurrencyOrganization()
Specifies whether the organization uses multiple currencies.













  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值