+ Start a Discussion

USER ID creation

Hi All,


I have 2 objects :

1. Standard object USERS

2. Custom object : Medical License


I need to have 1 to many relationship with medical license.


Limitations :


I cannot create master-detail relationship on medical license object with the user object.



I am creating a user and it is getting saved in the user object but when i want to save the user id in the medical license object as well.  how can i do it ? please help on this issue and please help me with a sample code.








If I understand your question correctly, you would create a lookup relationship to the User standard object. To do this, create a new field on your Medical License custom object that is a "Lookup Relationship" field type and then in Step 2 of the wizard, select User as the "Related" To object.