HAS_PERMISSION
Description
Returns TRUE if the context user has any of the specified custom permissions. Otherwise, returns FALSE.
Syntax
HAS_PERMISSION(...custom_permission_names)-> Boolean
Parameters
| Parameter | Data Type | Required | Description |
|---|---|---|---|
| ...custom_permission_names | String | Yes | One or more API names of Custom Permissions to check against the current user’s permission sets. |
Examples
HAS_PERMISSION("Admin_Access")
-- Returns TRUE if the context user has the "Admin_Access" permission; otherwise, returns FALSE.HAS_PERMISSION("Manage_Cases", "View_Case_Data_List")
-- Returns TRUE if the context user has either the "Manage_Cases" or "View_Case_Data_List" permission; otherwise, returns FALSE.