Create Custom Permission
sf_create_custom_permissionCreate a custom permission to control feature access or conditional UI rendering. Check it in formulas or Apex, and assign via Permission Sets.
Instructions
Creates a Custom Permission that can be checked in formulas with $Permission.MyPerm or in Apex with FeatureManagement.checkPermission('MyPerm'). Assign custom permissions to users via Permission Sets. Use for feature flags, conditional UI rendering, or access gates.
fullName: permission API name (e.g. 'Can_Approve_Discounts') label: display label description: optional description requiredPermissions: other custom permissions required before this one can be granted
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | Display label | |
| fullName | Yes | Custom permission API name, e.g. 'Can_Approve_Discounts' | |
| description | No | Description | |
| requiredPermissions | No | Other custom permissions required by this one |