Salesforce is a powerful CRM tool, but it can be customized to fit the needs of any business. One common customization is to change the Master Detail relationship to a Lookup relationship. This can be done in Salesforce by going to Setup, choosing Objects and Fields, and then selecting the object you want to change.
From there, you can edit the field properties and select Lookup from the Field Type drop-down menu.
- In Salesforce, click on the “Setup” cog in the top right corner and then select “Edit Page” from the drop-down menu
- Find the “Master Detail (Lookup)” component on the page and click on the pencil icon to edit it
- In the “Field” drop-down menu, select the field that you want to change to a lookup field
- Click on the “Save” button to save your changes

Credit: absyz.com
How Do I Convert Master Details to Lookup in Salesforce?
In Salesforce, you can convert a Master-Detail relationship to a Lookup relationship if you no longer need the security and reporting benefits that come with a Master-Detail relationship. To convert a Master-Detail relationship to a Lookup relationship, you must first delete the old Master-Detail field, then create a new Lookup field.
When you delete the old Master-Detail field, all associated data is deleted from your org.
This data cannot be recovered, so be sure to back up your org before deleting any fields.
To create a new Lookup field:
1) Go to Setup > Object Manager > [select object] > Fields & Relationships > New Field.
2) Select Lookup Relationship for the Data Type.
3) Enter a Field Label and Name. The name must begin with a letter or underscore and contain only alphanumeric characters and underscores.
It can’t end with an underscore.
4) In the Related To dropdown list, select the object that you want this field to reference. If you have multiple objects in your org, use the Search bar to find the object you want.
5) (Optional) If this is a required field, select Required next to Field Requirement . Users will not be able to save records unless they enter a value in this field or leave it blank if it’s not required..
6) (Optional) To add help text that appears when users hover over the field label, enter it in the Help Text box..
7) Click Save .
In Which Scenario Can the Master Detail Relationship Be Converted into Lookup Relationship?
The master detail relationship can be converted into lookup relationship if the following scenario is satisfied:
– If the detail object has a reference to another object, you can convert the master-detail relationship to a lookup relationship on that other object. This is useful if, for example, you want to model a many-to-one relationship between two objects and don’t want the dependency that a master-detail relationship creates.
For more information about when you might want to use this type of conversion, see Considerations for Converting Master Detail Relationships.
Let’s take an example to understand this better. There are two objects in Salesforce – Account (Master) and Contacts (Detail).
Now, let’s say we have a third object called ‘Invoice’ and there is a reference field of Accounts on Invoice object. In such cases, we can convert the Master-Detail relationship between Account and Contact objects into Lookup relationships because now Contact object has a reference via Invoice object.
Can a Lookup Relationship Be Changed to a Master Detail?
A lookup relationship is a relationship in which the child object has a foreign key that references the parent object. A master detail relationship is a relationship in which the parent object owns the child object. A lookup relationship can be converted to a master detail relationship if the following conditions are met:
-The child object must not have any data in it. If it does, you will need to delete all of the data before you can convert it.
-The field on the child object that is used as the foreign key must be indexed.
To convert a lookup relationship to a master detail relationship, follow these steps:
1) From Setup, enter Object Manager in the Quick Find box, then select Object Manager.
2) Select the child object that has the lookup relationships that you want to change to master detail relationships.
3) In Buttons, Links, and Actions section, click Edit next to Master-Detail Settings.
4) For each of the lookup fields that you want to change to a master-detail field, do one or more ofthe following:
a. Select Required under Field Requirements .
This makes the field required on both records when creating or editing them individually (not when using mass update). b. Select Create Records checked by default . This creates new records with this field populated when users create new parent records via UI (page layouts or Lightning apps), record creation wizards like Lead Conversion and Opportunity Splits , Data Import Wizard , and APIs
c. Set Default Value . When set on page layouts or Lightning apps , this populates newly created parent records with values from existing related children according to your criteria even if no user input exists yet for those fields (for example, an opportunity’s Account Name could default based on an associated contact’s Company Name ). 5) Click Save .
How Do I Change a Field Type from Master Detail to Lookup?
If you need to change a field type from Master Detail to Lookup, it can be done in a few simple steps. First, open the object you want to modify and click on the “Fields” tab. Next, find the field you want to change and click on the “Edit” button.
In the “Field Type” dropdown menu, select “Lookup”. Finally, click on the “Update Field” button to save your changes.
15 Convert master detail into lookup relationship in salesforce | Salesforce Lightning Videos
Master-Detail Relationship Salesforce
Salesforce Master-Detail Relationship:
A master-detail relationship in Salesforce is a type of relationship between two objects that are linked together by a common field. The common field is called the “master” field, and the object that contains the master field is called the “master” object.
The object that is linked to the master object by the master field is called the “detail” object.
The detail object inherits all of the fields from the master object, except for the master field itself. The detail object can also have its own unique fields.
When you create a record on the detail object, it automatically creates a lookup link to the corresponding record on the master object.
You can use a Salesforce Master-Detail Relationship to do things like:
* Create a roll-up summary field on the detail records that displays data from related fields on the master record
* Create cascading deletes, so that when you delete a record on the masterobject, all associated records on teh detailobject are deleted as well
Lookup And Master-Detail Relationship in Salesforce Example
Salesforce Lookup and Master-Detail Relationship:
In Salesforce, a lookup relationship is a one-to-many relationship in which the child object can have multiple parent objects. A master-detail relationship is a one-to-one relationship in which the parent object controls the behavior of the child object.
The two relationships are different in several ways:
Lookup relationships are optional, while master-detail relationships are required. In other words, every record in the child object must have a corresponding record in the parent object for a master detail relationship to exist.
A lookup field on the child object displays data from its parent object, but does not provide access to related list information on the parent record. A master detail field on the child provides access to related lists on both the parent and child records.
How Many Lookup Relationship We Can Create in Salesforce
A lookup relationship is a link between two objects that enables you to access data in one object from the other. For example, you can use a lookup field on the Contact object to relate a contact to an account, opportunity, lead, or custom object. You can also create what’s called a master-detail relationship, which is similar to a lookup relationship except that it creates a tight bond between the two objects.
In Salesforce, you can create up to 25 relationships of either type per object. However, keep in mind that too many relationships can make your data difficult to manage and slow down performance, so it’s important to choose them wisely.
Lookup Relationship Salesforce
Salesforce Lookup Relationships
A lookup relationship in Salesforce is a type of relationship between two objects that allows you to query data from one object and display it on another object. This relationship is created when you create a field on an object that references another object.
There are two types of lookup relationships in Salesforce: Master-Detail and Lookup. A Master-Detail relationship is a special type of lookup relationship that creates a parent-child relationship between two objects. A Detail record inherits the security settings of its Master record, so if a user does not have access to the Master record, they will not be able to see any Detail records.
A Lookup relationship does not create this parent-child relationship and therefore does not inherit security settings. This means that users can have access to Lookup records even if they do not have access to the Master record.
Creating a lookup relationship is simple.
You just need to create a new field on an object and select the object you want to reference as the Field Type. When creating the field, you will also be given the option to make it required or unique. If you make the field required, users will need to enter data in this field when creating or editing records.
If you make the field unique, Salesforce will only allow one record with this value in your org.
Conclusion
Yes, we can change master detail to lookup in Salesforce. To do so, we need to export the data from the old org using Data Loader. We then need to create a new org and import the data into it.
In the new org, we need to change the field type of the Master Detail field to Lookup and then select the object that we want to look up to.