You need to sign in to do that
Don't have an account?
Ab
using lookup instead of Master detail
Hello,
I am duplicating few objects, Ideally i wanted to have a detail object with two masters, but as it is not possible , I am obliged to make one of them as lookups..
What effects do the usage of lookup instead of masterdetail, will have on below things
1) Related lists in pagelayouts
2) I wanted to copy the records from one object to other using Apex
I am duplicating few objects, Ideally i wanted to have a detail object with two masters, but as it is not possible , I am obliged to make one of them as lookups..
What effects do the usage of lookup instead of masterdetail, will have on below things
1) Related lists in pagelayouts
2) I wanted to copy the records from one object to other using Apex
The key difference is master-detail has a direct dependency between the objects:
When you delete the master it will cascade delete all detail records relating to that master. A typical use of a Master-Detail would be the classic Sales Order and Sales Order Items objects.
- Lookups are generally for use where you may or may need to have a relationship between two objects (but not always).
- Lookups are generally used to reference commonly shared data, such as reference data.
- Lookups are used to link two objects together when you don't want the behaviour of the master-detail - particularly around sharing rules, profile permissions and cascade delete.
- Lookups are used when you need to relate multiple 'parents' to the detail record
Please check below post for more informationhttps://developer.salesforce.com/forums/?id=906F0000000ML7zIAG
http://www.infallibletechie.com/2013/02/difference-between-lookup-and-master.html
https://developer.salesforce.com/forums/?id=906F0000000BXZBIA4
All Answers
https://help.salesforce.com/HTViewHelpDoc?id=relationships_manytomany.htm
You can convert master detail into lookup and the changes made in lookup field you have no neccessary to field the mater record and when you delete the master records then the child record remain same.
Thanks
Gyanender Singh
http://www.mirketa.com
The key difference is master-detail has a direct dependency between the objects:
When you delete the master it will cascade delete all detail records relating to that master. A typical use of a Master-Detail would be the classic Sales Order and Sales Order Items objects.
- Lookups are generally for use where you may or may need to have a relationship between two objects (but not always).
- Lookups are generally used to reference commonly shared data, such as reference data.
- Lookups are used to link two objects together when you don't want the behaviour of the master-detail - particularly around sharing rules, profile permissions and cascade delete.
- Lookups are used when you need to relate multiple 'parents' to the detail record
Please check below post for more informationhttps://developer.salesforce.com/forums/?id=906F0000000ML7zIAG
http://www.infallibletechie.com/2013/02/difference-between-lookup-and-master.html
https://developer.salesforce.com/forums/?id=906F0000000BXZBIA4