Salesforce Interview Questions on OWD

Organization-wide defaults (OWD) Indicate the default level of access users have. It is utilized to secure the data to the most prohibitive level, and afterward utilize the other record-level security and sharing tools to offer access to different users specifically. Organization-wide defaults (OWD) reflect the standard degree of access that the most restricted users should have. The OWD can be used to make sure about the data. Afterward, other record-level security and sharing tools (role hierarchies, sharing rules, and manual sharing) can be utilized to open up the data to users who need it.

1. How can you change the setting “Grant Access Using Hierarchies” for Standard Objects?

It is not possible, by default Grant Access Using Hierarchies options are enabled for standard objects and they can not be changed. For custom objects, we can change the “Grant Access Using Hierarchies “settings.

2. What are the Mandatory points that you think while creating User and Role?

It’s Profile.

3. While setting OWD (Organization-wide sharing), can we change/modify the setting of child records in the case of a Master-Detail relationship?

No, we can not change the settings of child records in the Master-Detail relationship because the child record is controlled by the parent record.

4. Number of accesses available in Organization Wide Defaults and what are they?

We have 13 types of access in Organization default settings. They are

  1. Private
  2. Controlled by parent
  3. Public Read Only.
  4. Public Read/Write.
  5. Public Read/Write/Transfer.
  6. Public Full Access.
  7. Use.
  8. No Access.
  9. View Only.
  10. Hide Details.
  11. Hide Details and Events.
  12. Show Details.
  13. Show Details and events.

5. In Partner Community, the external user is having appropriate OWD and Profile Settings for Opportunity or considers any other Object. However, they are getting insufficient privilege access, what might because of this error?

  1. First check that every field used in report has Field level security for external users.
  2. Check whether Standard Report Visibility settings are enabled, if it is enabled user can be able to see reports which are based on standard report types.
  3. Now external user can be able to access sensitive information of internal user.

6. 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.

7. Is it possible to convert Mater – Detail Relationship to Look Up Relationship?

If the parent object doesn’t have Roll up Summary fields for the child object then we can convert.

8. Is it possible to delete junction – Object in case of Mater – Detail Relationship?

  • If the parent objects don’t have Roll up Summary fields for the child object then we can delete.
  • To delete a child object it should not be referred in Apex Classes and Apex Triggers.
  • Later if we undelete the object, Master detail fields on the junction objects will be converted to look up Fields.
  • Note:
  • If we delete only Master – Detail Relationship field from the child object and undelete it from the Recycle Bin then it will be converted to look up relationship.
  • Parent Object we cannot delete because it will be referred in the child object.

9 What will happen if we undelete the deleted Junction Object?

Master – Detail Relationship data types will be converted to look up relationship data types.

10. What will happen to child records if we delete a parent record in case of Lookup Relationship?

If we delete parent object record all the child object records relationship’s field value will be get deleted. (Entire record won’t be get deleted)

11. What will happen to child records if we delete a parent record in case of Master Detail Relationship?

If we delete the parent object record all the child object records will be get deleted.

12. What is Junction Object?

A child object which is having master detail relationships with two different parent object is called junction object.

Example:

Object1: Department

Object2: Project

Child Object: Employee

  • Field1: Department (Master Detail with Department )
  • Field2: Project(Master Detail with Project)

Note: From the above example we can say Employee Object as Junction Object.

13. For a junction object if we delete one of the parent record what will happen to child records?

Child records will be get deleted which are related to Department as well as Project.

Note: If we undelete the IT department record from the Recycle bin then along with IT department record all the related child (Employee) records will be restored those will be reflected for Project as well. (We cannot see the child object records in the Recycle bin)

Salesforce Interview Questions on OWD

  1. How can you change the setting “Grant Access Using Hierarchies” for Standard Objects?
  2.  What are the Mandatory points that you think while creating a User, Role, or Profile?
  3.  While setting OWD (Organization-wide sharing), can we change/modify the setting of child records in the case of a Master-Detail relationship?
  4.  While setting OWD (Organization-wide sharing), can we change/modify the setting of child records in the case of a Master-Detail relationship?
  5.  A number of accesses available in Organization-Wide Defaults and what are they?
  6. . In Partner Community, the external user is having appropriate OWD and Profile Settings for Opportunity or considers any other Object. However, they are getting insufficient privilege access, what might because of this error?
  7. What are relations in the salesforce? 
  8. What is different types of relations in the salesforce? 
  9. What is Master Detail Relation? 
  10. How many Master_Detail fields can be created on the object? 
  11. If we delete the parent record what will happen to child records? 
  12. Who is the owner of the child records in the master-detail relation? 
  13. Can a child record be a master to some other object? 
  14. Can we create a Master-Detail relation on the standard object? 
  15.  What is the Security sharing on the master-detail relation? 
  16.  The child records which are deleted will they go to the recylebin? 
  17. What is lookup relations?
  18. How many lookup relations can be created on a object ? 
  19. If we delete the parent record what will happen to the child records? 
  20. Can we create the Lookup relation on the standard object? 
  21. What is junction object? 
  22. What is primary master? 
  23. What is secondary master? 
  24. What is the importance of primary master? 
  25. How many lookup relations can be created on a object ? 
  26. If we delete the parent record what will happen to the child records? 
  27. Can we create the Lookup relation on the standard object? 
  28. What is junction object? 
  29. What is primary master? 
  30. What is secondary master? 
  31. What is the importance of primary master?