gextra
gextra

Reputation: 8885

How to associate a custom object record to a user account

In force.com I have created a custom object named Sales_Agents. Is there a way to specify that the users I relate here are associated to an real force.com ID ? For instance, how do I create a lookup to a real user under my tenancy account ?

Upvotes: 0

Views: 3174

Answers (1)

dana
dana

Reputation: 18115

You can make a custom Lookup field on the Sales_Agents object that relates to the User object. You cannot however make a custom Lookup field on the User object that relates to the Sales_Agents object.

This is a platform limitation. There is an idea on the IdeaExchange that you can vote up, but I would not count on it being available any time soon.

Here is how to add a Lookup field to your custom object:

  1. Setup -> Create -> Objects
  2. Select Sales_Agents
  3. In the Custom Fields & Relationships section click New
  4. Select Lookup Relationship and click Next
  5. Select User and click Next
  6. Complete all steps in the new field wizard and click Save

Upvotes: 2

Related Questions