Wednesday, May 11, 2016

Salesforce Interview Questions-Objects & Fields Part-4

16. Is it possible to change master-detail relationship to lookup relationship?
If the parent object doesn’t have Roll up Summary fields for the child object then we can convert.

17. Is it possible to create the Master – Detail Relationship field for the child object which is having existing records?
No, we cannot create directly. To create first we should create Look up relationship then populate the field value for all the records and then convert the look up relationship to master detail relationship.

18. What will happen if we undelete junction object and normal object from recycle bin?
Master – Detail Relationship data types will be converted to look up relationship data types.
If we undelete any object from recycle bin, then all master detail relationship will be changed to lookup relationship.

19. What will happen if we delete child object in case of look up relationship and master detail relationship?
In case of lookup relationship, we can delete parent object or child object. When parent object will be deleted, the value of lookup relationship field in all child records will become blank.
In case of master-detail relationship, if parent object contain roll up summary, then system will not allow you to delete child object.Also you cannot delete parent object in master detail relationship.

20. Is it possible to filter the records which are coming in look-up window when we click on lookup icon?
Yes, define filter criteria while defining the look up relationship.

<<Objects & Fields Part-3                        Sharing & Security Part-1>>


  1. Tks very much for your post.

    Avoid surprises — interviews need preparation. Some questions come up time and time again — usually about you, your experience and the job itself. We've gathered together the most common questions so you can get your preparation off to a flying start.

    You also find all interview questions at link at the end of this post.

    Source: Download Ebook: Ultimate Guide To Job Interview Questions Answers:

    Best rgs

  2. Thanks for the explanation. But in answer 19 u have mentioned that we cannot delete parent in master-detail relationship.

  3. 19. What will happen if we delete child Object in case of look up relationship and master detail relationship?

    this is what actual question I think.

    1. are correct. I have updated the question.

  4. These are really amazing and valuable websites you have shared with us. Thanks for the informative post. Keep posting like this information.
    hr solutions in Chennai | hr consultancy in Chennai | hr recruiterment in chennai