Interview Question - 5
1. What is Master Detail relationship and look up relationship in Salesforce?
A: 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.
2. Can we convert the lookup relationship to Master Detail relationship?
A: We can convert the lookup relationship to master detail relationship if and only if all the existing record has valid lookup field.
3. Can we create Master Detail relationship on existing records?
A:No. As discussed above, first we have to create the lookup relationship then populate the value on all existing record and then convert it.
4. How validation rules executed? is it page layout / Visualforce dependent?
A: The validation rules run at the data model level, so they are not affected by the UI. Any record that is saved in Salesforce will run through the validation rules.
5. How many types of the relationship fields available in Salesforce?
A:
1. Master Detail
2. Lookup
6.What are the types of email templates available in salesforce.com?
A:
1. Text
2. HTML with Letter Head
3. Custom HTML
4. Visual force
7. What is Roll up summary field in Salesforce?
A: Roll up summary field in salesforce calculates the Count, Sum, Min or Max of particular field of any child record. Thus, we can say that Roll up summary field can only be created on Master object.
8. If i want record level access then what should i use from Salesforce security model?
A: Manual Sharing
9. If i want Object level access then what should i use from Salesforce security model?
A: Profile
10. In OWD (Organization wide sharing), can i change the setting “Grant Access Using Hierarchies” for Standard Objects ?
A: You cannot change it for Standard Objects However for Custom Objects its possible.
11. What is Mandatory while creating User, Role or Profile?
A : Its Profile.
12. In case of Master-Detail relationship, on Update of master record can we update the field of child record using workflow rule?
A: No
13.In case of Master-Detail relationship, on Update of child record can we update the field of Parent record using workflow rule?
A: Yes, the Master fields are also available for “Criteria evaluation”.
14. While setting OWD (Organization wide sharing), can we change/modify the setting of child record in case of Master-Detail relationship?
A: No, Child record is controlled by the Parents setting.
15. What is the difference between Lookup Relationship and Master-Detail Relationship?
A: LOOK_UP RELATIONSHIP:
IN LOOKUP RELATIONSHIP WE CAN DELETE THE PARENT OBJECT IT WILL BE NOT AFFECTED TO THE CHILD OBJECT.
IN LOOKUP RELATION WE CAN ESTABLISH A RELATION WITH THE 25 OBJECTS.
MASTER DETAIL RELATIONSHIP:
IN MASTER DETAIL RELATIONSHIP WHEN EVER WE DELETE THE PARENT OBJECT AUTOMATICALLY CHILD OBJECT ALSO DELETED.
WE CAN ESTABLISH 2 MASTER DETAIL RELATIONSHIPS.
16. What are the different ways of making a field mandatory?
A: 3 ways of making the field mandatory are:-
1. Page Layout:- Field can be made mandatory from the page layout when it needs to be made mandatory for a set of users
2. Field Level Security:- Field can be made mandatory from the FLS when it needs to be made mandatory for all the users in the Organization and even from the API’s
3. Validation Rule:- Field can be made mandatory from the Validation Rule when it needs to be made mandatory for user who is using the same Page layout used by other users
17. How is Role Different from the Profile?
A: Roles and Profiles are two different concepts in Salesforce.com, Some of the basic differences are:
• Profile helps to put restrictions on the Object where as the Role helps in opening the records to the users above the Role hierarchy
• Profile manages the Salesforce.com License, Tabs Settings, Record types, Page layouts, General Settings, Administrator Settings etc; Role hierarchy does not do any of these things
• Profile is Mandatory, Role is not
18. When are the Record types used?
A: Record Types are used in the following two cases
1. To assign the different Page layouts to different users based on their profiles
2. To enable different sets of Standard/Custom Picklist values for two different users using the same page layout
A: 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.
2. Can we convert the lookup relationship to Master Detail relationship?
A: We can convert the lookup relationship to master detail relationship if and only if all the existing record has valid lookup field.
3. Can we create Master Detail relationship on existing records?
A:No. As discussed above, first we have to create the lookup relationship then populate the value on all existing record and then convert it.
4. How validation rules executed? is it page layout / Visualforce dependent?
A: The validation rules run at the data model level, so they are not affected by the UI. Any record that is saved in Salesforce will run through the validation rules.
5. How many types of the relationship fields available in Salesforce?
A:
1. Master Detail
2. Lookup
6.What are the types of email templates available in salesforce.com?
A:
1. Text
2. HTML with Letter Head
3. Custom HTML
4. Visual force
7. What is Roll up summary field in Salesforce?
A: Roll up summary field in salesforce calculates the Count, Sum, Min or Max of particular field of any child record. Thus, we can say that Roll up summary field can only be created on Master object.
8. If i want record level access then what should i use from Salesforce security model?
A: Manual Sharing
9. If i want Object level access then what should i use from Salesforce security model?
A: Profile
10. In OWD (Organization wide sharing), can i change the setting “Grant Access Using Hierarchies” for Standard Objects ?
A: You cannot change it for Standard Objects However for Custom Objects its possible.
11. What is Mandatory while creating User, Role or Profile?
A : Its Profile.
12. In case of Master-Detail relationship, on Update of master record can we update the field of child record using workflow rule?
A: No
13.In case of Master-Detail relationship, on Update of child record can we update the field of Parent record using workflow rule?
A: Yes, the Master fields are also available for “Criteria evaluation”.
14. While setting OWD (Organization wide sharing), can we change/modify the setting of child record in case of Master-Detail relationship?
A: No, Child record is controlled by the Parents setting.
15. What is the difference between Lookup Relationship and Master-Detail Relationship?
A: LOOK_UP RELATIONSHIP:
IN LOOKUP RELATIONSHIP WE CAN DELETE THE PARENT OBJECT IT WILL BE NOT AFFECTED TO THE CHILD OBJECT.
IN LOOKUP RELATION WE CAN ESTABLISH A RELATION WITH THE 25 OBJECTS.
MASTER DETAIL RELATIONSHIP:
IN MASTER DETAIL RELATIONSHIP WHEN EVER WE DELETE THE PARENT OBJECT AUTOMATICALLY CHILD OBJECT ALSO DELETED.
WE CAN ESTABLISH 2 MASTER DETAIL RELATIONSHIPS.
16. What are the different ways of making a field mandatory?
A: 3 ways of making the field mandatory are:-
1. Page Layout:- Field can be made mandatory from the page layout when it needs to be made mandatory for a set of users
2. Field Level Security:- Field can be made mandatory from the FLS when it needs to be made mandatory for all the users in the Organization and even from the API’s
3. Validation Rule:- Field can be made mandatory from the Validation Rule when it needs to be made mandatory for user who is using the same Page layout used by other users
17. How is Role Different from the Profile?
A: Roles and Profiles are two different concepts in Salesforce.com, Some of the basic differences are:
• Profile helps to put restrictions on the Object where as the Role helps in opening the records to the users above the Role hierarchy
• Profile manages the Salesforce.com License, Tabs Settings, Record types, Page layouts, General Settings, Administrator Settings etc; Role hierarchy does not do any of these things
• Profile is Mandatory, Role is not
18. When are the Record types used?
A: Record Types are used in the following two cases
1. To assign the different Page layouts to different users based on their profiles
2. To enable different sets of Standard/Custom Picklist values for two different users using the same page layout
Comments
Post a Comment