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

Create Relationship between Two Custom Objects

Hi All,


I am developing simple application,  in it there are two custom objects Employee & Department.


Now While inserting Department Details I am insterting Employee ID. which I want to refer from Employee Object and also wants to validate that Employee ID must have a reference in Employee Object.


Question :- I want to create relationship between two custom objects. i.e Employee & Department.


Can Anyone please help me out.


Thanks in Advance,

Brijesh Thakur


Relationship can be created by following steps.


1. On the Department Object create custom lookup field with Employee object.

2. When u click new button from Department, u will find search icon which will dipsplay the Emplyee object records.


Hi Srinivasan 


Thank you very much.




But What if I want to create an application which is same like discussion board and simply I just want to ask to user to login.and whatever he posts something I can get the details of user  and diretly store to the database.


And also please give me some inputs to create users for the that they can directly use it from the URL.


Thanks again


Brijesh Thakur