Junction Object:
Suppose we are having a junction object Accountandclientlink so these question could be asked by the interviewer.
- Question 1. What if we will delete the junction object?
Ans : We can delete the junction object if we are not having rollup summary field in an Master object.Now after undelete the junction object all MD relationship will be converted into Lookup relationship. after undeleting any object the tab of that object will not be available. - Question 2. What if we will delete one master object?
Ans:We can’t delete the master object - Question 3. What if we will delete the record of master or junction object?
Ans : If we will delete the record of junction object it will be deleted no problem.
But when you will delete the master record the junction object record will be deleted and if you will restore the record from recycle bin then the deleted record of junction object and master object will be restored. - Question 4. What if we have a roll up summary on one master object in junction object then can we delete the other master?
Ans : We can’t delete the object whether the object having roll up summary field or not. - Question 5. What if we will delete the one master relationship field in junction object?
Ans : if you will delete the one MD relationship field then it will be deleted no problem will occur. - Question 6. What if we will delete the object in lookup relationship?
Ans : We can’t delete the object even in lookup relationship but we can delete the record of lookup object. -
Question 7. What if we will delete the lookup relationship field?
Ans : Lookup relationship field will be deleted and no value will be in the record of that field.if we undelete the field the same value will auto populate in the relationship field.
Hello Guys, I have written this blog after practically implementing the junction object.If you have questions other than these then please write them in comments. Or anything i have mentioned is wrong then also suggest me the right one.
Thanks to Vishwanath Gupta for motivating me to write a blog on these questions.
Leave a reply to Ali Zaib Cancel reply