How to check Custom Permission assigned to the current user’s profile using Apex in Salesforce?
Sample Salesforce Custom Permission: Sample Code: Boolean accessBool = FeatureManagement.checkPermission( 'Create_Account' ); System.debug( 'accessBool is ' + accessBool ); ( Or ) Boolean accessBool; Set < Id > permissionSetIds = ....