Home Salesforce Interview Questions and Answer SFDC Interview Question and Answer Part – 10

SFDC Interview Question and Answer Part – 10

SFDC Interview Question and Answer Part – 10

(91). How to restrict the user to see any record, lets say CASES?

set up cases sharing to be private.  If both users are admins or have view all records on cases, then that overrides private sharing.

(92).What is difference between WhoId and WhatId in the SFDC Data Model of Task/Events ?

WhoID – Lead ID or a Contact ID
WhatID – Account ID or an Opportunity ID or Custom Object ID

(93). What is Master Detail relationship and look up relationship in Salesforce?

Master Detail relationship is the Parent child relationship. In which Master represents Parent and detail represents Child. If Parent is deleted then Child also gets deleted. Rollup summary fields can only be created on Master records which will calculate the SUM, AVG, MIN of the Child records.

Look up relationship is something like “has-a” (Containership) relationship. Where one record has reference to other records. When one record is deleted then there is no impact on other records.

(94). Can we convert the lookup relationship to Master Detail relationship?

Yes, We can convert the lookup relationship to master detail relationship only if all the existing record has valid lookup field values.

(95). Can we create Master Detail relationship on existing records?

No. first we have to create the lookup relationship then populate the value on all existing record and then convert it.

(96). In How many way we can invoke the Apex class?

1. Visualforce page
2. Trigger
3. Web Services
4. Email Services

(96). What is the custom settings?

Custom settings are similar to custom objects and enable application developers to create custom sets of data, as well as create and associate custom data for an organization, profile, or specific user. All custom settings data is exposed in the application cache, which enables efficient access without the cost of repeated queries to the database. This data can then be used by formula fields, validation rules, Apex, and the Web services API.

(97). Types of the custom settings?

List Custom Settings:
A type of custom setting that provides a reusable set of static data that can be accessed across your organization. If you use a particular set of data frequently within your application, putting that data in a list custom setting streamlines access to it. Data in list settings does not vary with profile or user, but is available organization-wide. Examples of list data include two-letter state abbreviations, international dialing prefixes, and catalog numbers for products. Because the data is cached, access is low-cost and efficient: you don’t have to use SOQL queries that count against your governor limits.
Hierarchy Custom Settings:
A type of custom setting that uses a built-in hierarchical logic that lets you “personalize” settings for specific profiles or users. The hierarchy logic checks the organization, profile, and user settings for the current user and returns the most specific, or “lowest,” value. In the hierarchy, settings for an organization are overridden by profile settings, which, in turn, are overridden by user settings.

SFDC Interview Question and Answer Part – 1 SFDC Interview Question and Answer Part – 2 SFDC Interview Question and Answer Part – 3 SFDC Interview Question and Answer Part – 4
SFDC Interview Question and Answer Part – 5 SFDC Interview Question and Answer Part – 6 SFDC Interview Question and Answer Part – 7 SFDC Interview Question and Answer Part – 8
SFDC Interview Question and Answer Part – 9 SFDC Interview Question and Answer Part – 10 SFDC Interview Question and Answer Part – 11 SFDC Interview Question and Answer Part – 12
SFDC Interview Question and Answer Part – 13 SFDC Interview Question and Answer Part – 14 SFDC Interview Question and Answer Part – 15 SFDC Interview Question and Answer Part – 16
SFDC Interview Question and Answer Part – 17 SFDC Interview Question and Answer Part – 18 SFDC Interview Question and Answer Part – 19 SFDC Interview Question and Answer Part – 20

Leave a Comment