English 中文(简体)
Salesforce - Lookup Relationship
  • 时间:2024-12-22

Salesforce - Lookup Relationship


Previous Page Next Page  

A Lookup relationship involves finding value of a field based on the value in another field in another object. It is mostly used in the case of commonly shared data between two objects.

Example

In the courier company, we have a depvery location which must be related to a depvery schedule. So we have a field "DepverySchedule" in the object Depvery location that looks up for values from the other custom Object named "Depvery Schedule". Let us now see the steps to create such a lookup relation.

Step 1

First we identify the objects and the fields which need to have the relationship. In our example, these two objects are Depvery Schedule and Depvery Location.

Step 2

Create a Custom Object named DepveryLocation as we did in the previous chapter. In it, go to the tab fields and relationships. Cpck New → Custom Filed → Lookup Relationship. Choose the field type as lookup field and enter the details as shown below.

Lookup 1

Step 3

You can verify the lookup relationship created by going to the schema builder and choosing the two objects for display.

Lookup Final Advertisements