CurrentUserField
Returns the value for the specified field for the current session.
This function always reads raw field values from the current user database record. Therefore, the current user field returned by this function is not initialized or calculated when the field is accessed, even if it has an initialization or calculation rule assigned.
Syntax
CurrentUserField(field)
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 | No |
Reports | No |
Search/Dashboard without field references | Yes1 |
Search/Dashboard with field references | Yes1 |
1. Except in services. |
Parameter
Parameter | Description |
---|---|
field | The name of the field that contains the information to see. |
Returns
Text value. Returns the value of the field.
Example
Any field on the Employee business object can be accessed by passing this expression.
$(CurrentUserField("CostCentre"))
CurrentUserField() Example