Service Manager

Home 

CurrentUserEmail

Returns the primary email address of the user associated with the current session. This is the Primary Email field from the Details tab in the user profile.

Syntax

CurrentUserEmail()

Enabled For

For a description of the business object categories, see Notes on "Enabled For".

Business Object Category Yes/No
Business Rules: Before-Save Rules Yes1
Business Rules: Calculation Rules (After Save, with or without Also Recalculate on Load) Yes1
Business Rules: Calculation Rules (Before Save or Always, without Also Recalculate On Load) Yes1
Business Rules: Calculation Rules (Before Save or Always, with Recalculate On Load) Yes1
Business Rules: Editing Rules Yes1
Business Rules: Initialization Rules Yes1
Business Rules: Read Only Rules Yes1
Business Rules: Required Rules Yes1
Business Rules: Validation Rules Yes1
Client Expressions Yes
Object Permissions Yes
Services Yes
LDAP Yes
Mobile Yes
Quick Actions (except UI Quick Actions) Yes1
UI Quick Actions Yes
Reports Yes1
Search/Dashboard without field references Yes1
Search/Dashboard with field references Yes1
1. Except in services.

Parameters

none

 

Return Value

Unicode text value. Returns an email address value, such as [email protected]

If the Primary Email field on the Details tab in the user profile is empty, returns an error.

Example

The following example finds the active incident instances for the employee with the email address associated with the user of the current session.

CurrentUserEmail() Example


Was this article useful?