Lookup relationship is a type of relationship in which that if one gets deleted then the related object will not get deleted.
Important Points Regarding look Up Relationship
- When a parent’s record gets deleted, the child remains in existence.
- We cannot create a roll-up summary field in a lookup relationship.
- The relationship is optional.
- No impact on Security.
Assuming a situation that any Company is there and they are having Account section Teams They want to have the Account records of Employee’s who’s working in Company.
Step1-:Login to your org
Step 2-:Setup > Object Manager > Employee
Step3-: Click on field & Relationship > New
Step 4-: Select Lookup Relationship >Next.
Step 5-: Select Account from the drop-down > Next.
Step 6-: The next page will be containing Child Relationship with a parent.
Step 7 -: Next step is Field-level Security.
Step 8-: Another Step is for the Page Layout Reference
Step 9 -: Last step is the Addition of a Related list and Saving the Lookup Relationship.
Conclusion: Here we have got a detailed Step by Step understanding of how to create a Lookup Relationship.
Happy learning
Written By: Ashutosh Tiwari