function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
OzymandiasOzymandias 

Lookup field for Profiles

We've implemented some Profile based access control in our instance (e.g. only certain profiles can edit closed opportunities) and currently, the way this is done is that the profile ids are hard-coded in S-controls that control the flow of the UI.

I'm trying to see if hardcoding can be eliminated by creating a custom object where a profile can be linked to a list of permissions. However, I've hit a snag when creating the linkage between the custom object and profile since the UI doesn't allow me to create a lookup field for profiles.

Has anyone here tried something similar? Is it possible to create a lookup field to profile in a custom object, 'cause it appears to be possible on the User object.