Notes
We cannot directly create a Master-Detail relationship on existing records. To achieve this, you have two options:
-
Convert a Lookup Relationship:
- First, create a Lookup Relationship between the two objects.
- Populate the lookup field for all existing records to establish the necessary relationships.
- Once all records are associated, convert the Lookup Relationship into a Master-Detail Relationship.
-
Delete Existing Records:
- If associating records manually is not feasible, delete all existing records from the object.
- After that, create the Master-Detail Relationship and reinsert the records with the necessary associations.