I want to filter user lookup with criteria: only users have permission set name 'manager_user'. So to achieve that, i do as follow:
- Create a permission set name 'manager_user'
- Create a custom permission name 'manager_user'
- Add custom permission from 2 to permission set 1
- Create formula field in User object with name = PermissionSet_Formula, value = IF($Permission.manager_user, 'manager_user', '')
- Set lookup filter criteria: User: PermissionSet Formula equal 'manager_user'
But when save filter lookup, it show error:
Error: Error in referenced formula PermissionSet_Formula__c, Field $Permission.manager_user does not exist. Check spelling.