[SalesForce] Are lookup fields on the User object (e.g. to Contact) supported by the platform

Aim – i need to have a lookup field on the user object which looks @ the contact object and only returns values where the email address is @domain.com

Now i am under the impression that no lookups can be used on the user object

Currently we have a field called manager on the user object. Manager is a picklist, and we add the managers on the picklist as we sit fit. (However this hasn’t been maintained in a long while)

Now my idea is to have a look up from the user object to the contact. Every internal person is a contact in our SF and this is maintained on a regular basis

Is there anyway that this can be done ?
Currently we use a picklist, but we have over 600 internal users and its not idea to have multiple picklists to choose internal users.

Best Answer

Unfortunately only Hierarchical Relationship (from user to user) and neither Lookup- nor MasterDetail-Relations are available on the user object.

This is a current platform limitation and you are not the only one who would like it: https://success.salesforce.com/ideaview?id=087300000007WKpAAM

So my first question is why you don't use the Hierachical Relationship and look up the Manager as user - not as contact. But probably you have Managers which has no Salesforce license, right? Possibly you could provide all of your managers a license. You could try cheaper licenses like Chatter or Force.com light.

An other workaround could be to create a text-field and store the contact id. But to access related data, you would either need a trigger to sync some fields or apex and visualforce pages which pulls the data on the fly together. Both not perfect.

Related Topic