Salesforce Developer Interview Questions And Answers For Experienced

Interview Questions

Salesforce Developer Interview Questions And Answers For Experienced 2018. Here in this blog post Coding compiler presenting a list of 54 Salesforce interview questions for developers. We hope that these Salesforce technical questions will help you to know what kind of questions will be asked during Salesforce interview. Let’s read Salesforce scenario based interview questions to crack your next Salesforce job interview. All the best and happy learning.

Salesforce Interview Questions

  1. What is App in Salesforce?
  2. What is the object in Salesforce?
  3. How many relationships included in SFDC & What are they?
  4. What is a “Lookup Relationship”?
  5. What is “Master-Detail Relationship”?
  6. How can I create Many – to – Many relationships?
  7. List examples of custom field types?
  8. What is TAB in Salesforce?
  9. Can a user create insert their own custom logo, while creating their own custom applications?
  10. List things that can be customized for page layouts?
  11. What is a “Self Relationship”?
  12. What are the main things need to consider in the “Master-Detail Relationship”?
  13. What is the difference between trigger and workflow?
  14. What is Wrapper class?
  15. What is Difference between SOQL and SOSL?
  16. What is difference insert() and database .insert() ?
  17. What are Static Resources?
  18. How to call javascript using Static Resource in Visual Force page?
  19. What is sharing rule?
  20. How many ways can we share a record?

Salesforce Interview Questions and Answers

Question # 1. What is App in Salesforce?

Answer # An app is a group of tabs that work as a unit to provide functionality. Users can switch between apps using the Force.com app drop-down menu at the top-right corner of every page.

You can customize existing apps to match the way you work or build new apps by grouping standard and custom tabs.

Navigation to create an app in Salesforce: Setup ->Build ->Create->App-> Click on new and create your application according to your requirements.

Question # 2. What is the object in Salesforce?

Answer # Custom objects are database tables that allow you to store data specific to your organization in salesforce.com. You can use custom objects to extend salesforce.com functionality or to build new application functionality.

Once you have created a custom object, you can create a custom tab, custom related lists, reports, and dashboards for users to interact with the custom object data. You can also access custom object data through the Force.com API.

Navigation to create the object in sales force: Setup->Build->Create->Object-> Click on the new object and create object according to your requirement.

Question # 3. How many relationships included in SFDC & What are they?

Answer # We are having four types of relationships, they are

Lookup Relationship

Master-Detail Relationship

Many To Many

Hierarchy Relationship

Question # 4. What is a “Lookup Relationship”?

Answer # This type of relationship links two objects together,

Up to 25 allowed for object

  • Parent is not a required field.
  • No impact on a security and access.
  • No impact on deletion.
  • Can be multiple layers deep.
  • The lookup field is not required.

Salesforce Interview Questions and Answers

Question # 5. What is “Master-Detail Relationship”?

Answer # 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.

Up to 2 allowed to object.

  • Parent field on the child is required.
  • Access to parent determines access to children.
  • Deleting parent automatically deletes child.
  • A child of one master-detail relationship cannot be the parent of another.
  • Lookup field on page layout is required.

Question # 6. How can I create Many – to – Many relationships?

Answer # Lookup and Master detail relationships are one to many relationships. We can create many – to – Many relationship by using junction object. Junction object is a custom object with two master detail relationships.

Question # 7. A custom object contains some records, now my requirement is to create the field in this object with the master-detail relationship. Can we create master-detail relationship in this case?

Answer # No, directly we cannot create master details relationship if custom object contains existing records.
Following are the steps to create to create master-detail relationship when records are available in custom object.

First create field with lookup relationship.

And then associate look field with parent record for every record.

Next change the data type of the field from look up to Master detail.

 

Question # 8. List examples of custom field types?

A) Text, Pick list, Pick list (multi select), Date, Email, Date/Time, Date, Currency, Checkbox, Number, Percent, Phone, URL, Text Area, Geolocation, lookup relationship, master detail relationship etc…..

Question # 9. What is TAB in Salesforce?

Answer # Tab is a user interface component to user creates to display custom object data.

There are three type of tabs.

  1. Custom Tabs
  2. Visual force Tabs
  3. Web Tabs

Question # 10. Can a user create insert their own custom logo, while creating their own custom applications?

Answer # Yes user can upload their custom logo in documents and then they choose that logo for organization.

Salesforce Interview Questions and Answers

Question # 11. List things that can be customized on page layouts?

Answer # We can customize different things on page layout like, Fields, Buttons, Custom Links and Related Lists. We can also create sections.

Salesforce Developer Interview Questions and Answers PDF

Question # 12. What is a “Self Relationship”?

Answer # Self Relationship is a lookup relationship to the same object. Suppose let’s take an object “Merchandise”. Here we can create relationship in between the Account to Account (same object) object. That is called “Self Relationship”.

Question # 13. What are the main things need to consider in the “Master-Detail Relationship”?

Answer # Record level access is determined by the parent, Mandatory on child for reference of parent, cascade delete (if you delete the parent, it can cascade delete the child).

Question # 14. What is the difference between trigger and workflow?

Answer # Workflow – Workflow is automated process that fired an action based on Evaluation criteria and rule criteria.

We can access a workflow across the object.

We cannot perform DML operation on workflow

We cannot query from database

Trigger – Trigger is a piece of code that executes before or after a record is inserted or updated.

We can access the trigger across the object and related to that objects

We can use 20 DML operations in one trigger.

We can use 20 SOQL’s from data base in one trigger.

Question # 15. What is Wrapper class?

Answer # A Wrapper class is a class whose instances are collection of other objects.

It is used to display different objects on a Visual Force page in same table.

Salesforce Interview Questions on Triggers

Question # 16. What is Difference between SOQL and SOSL?

Answer # SOQL(Salesforce Object Query Language)

Using SOQL we can Search only on one object at a time.

We can query on all fields of any datatype

We can use SOQL in Triggers and classes.

We can perform DML operation on query results.

SOSL(Salesforce object Search Language)

Using SOSL we can search on many objects at a time.

We can query only on fields whose data type is text,phone and Email.

We can use in calsses but not in Triggers.

We cannot perform DML operation on search result

 

Question # 17. What is difference insert() and database .insert() ?

Answer # Using insert method we can insert the records but if any error occurs in any record system will throw an error insertion fail and none of the records are inserted.

If we want to execute partially success of bulk insert operation we will use database .insert.

Question # 18. What are Static Resources?

Answer # Using Static Resources we can upload images, zip files, jar files, java script and CSS files that can be referred in a visual force page.

The maximum size of Static Resources for an organization is 250mB.

Salesforce Interview Questions and Answers

Question # 19. How to call javascript using Static Resource in Visual Force page?

Answer # Add java script file in Static Resource setup -> develop -> Static Resources -> click on ‘New’ -> Name: filename and add file from local desktop and save.

We can use that file as follows in Visual Force page

<apex: includescript values=” {! $Resource.fileName}”/>

Question # 20. What is sharing rule?

Answer # If we want to give the access to other users we use sharing rules.

Salesforce Developer Interview Questions and Answers For Experienced

Question # 21. How many ways we can share a record?

Answer # Role Hierarchy:

If we add a user to a role, the user is above in the role hierarchy will have read access.

Setup -> manage users -> roles -> setup roles -> click on ‘add role’ -> provide name and save.

OWD: Defines the base line setting for the organization.

Defines the level of access to the user can see the other user’s record

OWD can be Private, Public Read Only, Public Read and Write.

Setup -> Security Controls -> sharing settings -> Click on ‘Edit’

Manual Sharing: Manual Sharing is sharing a single record to single user or group of users.

We can see this button detail page of the record and this is visible only when OWD setting is private.

Criteria Based Sharing rules: If we want to share records based on condition like share records to group of users

Whose criteria are country is India.

Setup -> security controls -> sharing settings -> select the object and provide name and

Conditions and save

Apex sharing:

Share object is available for every object(For Account object share object is AccountShare ). If we want to share the records using apex we have to create a record to the share object.

Salesforce Interview Questions and Answers

Question # 22. What are the actions in workflow?

Answer #

1. Email Alert

2. Task

3. Field Update

4. Outbound Message

Question # 23. How many ways we can made field is required?

Answer #
1. While creation of field

2. Validation rules

3. Page Layout level

Question # 24. What is difference between Role and Profile?

Answer #

Role is Record level access and it is not mandatory for all users.

Profile is object level and field level access and it is mandatory for all users.

Question # 25. What is the maximum size of the PDF generated on visualforce attribute renderAs?

Answer # 15MB

Question # 26. How many controllers can be used in a visual force page?

Answer # Salesforce comes under SAAS so, we can use one controller and as many extension controllers.

Salesforce Interview Questions and Answers

Question # 27. What is difference between Action support and Action function?

Answer #

Action function: Invoke the controller method from java script using AJAX and we can use action function from different places on visual force page.

Action support: Invoke the controller method using AJAX when even occurs on page like onMouseOver, onClick, ect… and we can use action support for particular single apex component.

Question # 28. How many ways we can call the Apex class?

Answer #

  1. Visual force page
  2. Web Service
  3. Triggers
  4. Email services

Question # 29. How to create Master Details relationship between existing records?

Answer # Directly we can’t create Master Detail relationship between existing records, first we have to create Lookup relationship and provide valid lookup fields and it shouldn’t null.

Salesforce Interview Questions and Answers

Question # 30. What is permission set?

Answer # Permission sets extend user’s functional access without changing user’s profile.

Ex: A user has only read access through profile on custom object, administrator want to give access Edit and create operations to him without changing the profile. Administrator creates the permission set having edit and creates operation on custom object and assign to that user.

Salesforce Scenario Based Interview Questions and Answers

Question # 31. What is manual sharing?

Answer # Manual sharing is to share a record to a particular user manually.

Go to detail page of record and click on manual sharing button and assign that record to other user with Read or Read/Write access.

Manual Sharing button enables only when OWD is private to that object.

Question # 32. How we can change the Grant access using role hierarchy for standard objects?

Answer # Not possible.

Salesforce Interview Questions and Answers

Question # 33. What is the use of “Transfer Record” in profile?

Answer # If user have only Read access on particular record but he wants to change the owner name of that record, then in profile level Transfer Record enables he can able to change the owner.

Question # 34. What is Field dependency?

Answer # According to the field selection on one field filter the pick list values on other field.

Question # 35. Is check box performs like controlling field?

Answer # Yes possible. Controlling field should be Check box or pick list.

Question # 36. How many field dependencies we can use in Visual Force page?

Answer # Maximum we can use 10 field dependencies in VF page.

Question # 37. What is Roll-up summary?

Answer # Roll-up displays the count of child records and calculate the sum, min and max of fields of the child records.

Salesforce Interview Questions and Answers

Question # 38. How to create Roll-up summary field on lookup relation?

Answer # Not possible. Roll-up summary is enabled for only Master –Detail relationship.

Question # 39. What are the Record Types?

Answer # Record Types are restrict the pick list values and assign to the different page layouts for different Record Types.

Question # 40. What is Audit Trail?

Answer # Audit Trail provides the information or track all the recent setup changes that an administrator done to the organization.

This can store the last 6 months data.

Salesforce Interview Questions and Answers

Question # 41. What are the Report Types?

Answer # 4 Types of report in Salesforce

Tabular Reports: We can only displays the grand total in the table form.

Summary Reports: It is a detail form of report in which the grouping done based on Columns.

Matrix Reports: It is a detail form of report in which the grouping done based on both Rows and Columns.

Joined Reports: We can join the two or more reports in the single report displayed in the form of blocks.

Question # 42. What is Dashboard?

Answer # Dashboard is a pictorial representation of report. We can add up to 20 reports in single dashboard.

Question # 43. What is the default timeout period while calling webservice from Apex.

Annswer # 10Sec

Salesforce Developer Technical Interview Questions and Answers

Question # 44. We have a “Time Based Workflow” and there is Action scheduled to be executed. If we Deactivate the workflow, Scheduled actions will be removed from queue or not?

Answer # Action will be performed even if we are deactivated the workflow.

Salesforce Interview Questions and Answers

Question # 45. How to delete “Time based workflow” if there is already an action scheduled?

Answer # We can’t delete the “Time based workflow” if any pending actions in the queue.

Question # 46. How to update the record using After Trigger context?

Answer # Not possible. You will get error like “Record is Read only”.

Question # 47. What is the difference between “Export” and “Export All” in Data Loader in Salesforce?

Answer # Export is export all the data from Salesforce.com excluding the recycle bin’s data.

Export All is export all the data from Salesforce including the recycle bin’s data.

Question # 48. What is the use of “ALL ROWS” in SOQL?

Answer # ALL ROWS is used for retrieving the records from recycle bin.

Ex: SELECT Id from Campaign ALL ROWS

-> “ALL ROWS” is not work in developer console.

Salesforce Interview Questions and Answers

Question # 49. What is the use of “FOR UPDATE” in SOQL?

Answer # FOR UPDATE is used to lock the records.

Ex: Campaign cam = [SELECT id FROM Campaign LIMIT 1 FOR UPDATE];

Question # 50. What is the use of “savepoint” in apex?

Answer # This is will use for to roll back the changes.

Question # 51. How to call Apex class using java script?

Answer # Check the below code.

Apex Class:

global class ClassName{

webService static String methodName(String camName) {

Campaign cam = new Campaign(name = camName);

return cam.name;

}

}

Java Script:

var Campaign = sforce.sObject(“Campaign”);

var String = sforce.apex.exceute(“ClassName”,”methodName”,{name=”ABC”});

Salesforce Interview Questions and Answers

Question # 52. How to run trigger in asynchronously?

Answer # If you use @FUTURE annotation trigger run asynchronously.

Question # 53. We are not providing some of fields in .csv file which are required in page layout level. What happens if we try to insert records into Salesforce through data loader?

Answer # All records are inserted in Salesforce successfully.

Salesforce Interview Questions and Answers

Question # 54. We are not providing some of fields in .csv file which are required in Filed level. What happens if we try to insert records into Salesforce through data loader?

Answer # Except those records remaining records will be inserted in to Salesforce. Source: Salesforce Tutorial

RELATED INTERVIEW QUESTIONS

  1. 300 SSIS Interview Questions
  2. PHP Interview Questions And Answers
  3. Alteryx Interview Questions
  4. AWS Cloud Support Interview Questions
  5. Google Kubernetes Engine Interview Questions
  6. AWS Devops Interview Questions
  7. Apigee Interview Questions
  8. Actimize Interview Questions
  9. Kibana Interview Questions
  10. Nagios Interview Questions
  11. Jenkins Interview Questions
  12. Chef Interview Questions
  13. Puppet Interview Questions
  14. DB2 Interview Questions
  15. AnthillPro Interview Questions
  16. Angular 2 Interview Questions
  17. Hibernate Interview Questions
  18. ASP.NET Interview Questions
  19. Kubernetes Interview Questions
  20. Docker Interview Questions
  21. CEH Interview Questions
  22. CyberArk Interview Questions
  23. Appian Interview Questions
  24. Drools Interview Questions
  25. Talend Interview Questions
  26. Selenium Interview Questions
  27. Ab Initio Interview Questions
  28. AB Testing Interview Questions
  29. Mobile Application Testing Interview Questions
  30. Pega Interview Questions

Leave a Reply

Your email address will not be published. Required fields are marked *