Share Your Experience With Others

Some Questions & Answers about Junction Object

Junction Object:rtaImage

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.

5 responses to “Some Questions & Answers about Junction Object”

  1. Ritu gupta Avatar
    Ritu gupta

    Hi, i have also tried the juction object behaviour.. but i have noticed 1 difference from your mentioned details.

    On the question no. 3
    1 The juction record will not be visible in recycle bin, it will automatically restore if we restore the master record. We can’t restore juction object due to non visibility of the record.

    Please confirm!!
    Thank you for the this article.

    Liked by 1 person

    1. Kamaal Ahmad Usmani(11x SFDC|2x Copado|6x Conga|1x Flosum) Avatar
      Kamaal Ahmad Usmani(11x SFDC|2x Copado|6x Conga|1x Flosum)

      Okay, Thanks Ritu for your suggestion.

      Like

  2. linkeshvaranr Avatar
    linkeshvaranr

    Hi Mate,

    4th point seems to be wrong.

    Like

    1. Kamaal Ahmad Usmani(5x SFDC|2x Copado|6x Conga) Avatar
      Kamaal Ahmad Usmani(5x SFDC|2x Copado|6x Conga)

      Okay, let me check again. I wrote this long back might things have been changed

      Like

  3. Ali Zaib Avatar
    Ali Zaib

    sometimes i get confused before creating Junction object, What are the prerequisite should we consider before creating a junction object?

    Like

Leave a reply to Kamaal Ahmad Usmani(11x SFDC|2x Copado|6x Conga|1x Flosum) Cancel reply