Question:- What is an Audit trail?
Answer:- If an organization has various Salesforce Administrators, the Audit trail lets you track all the recent changes made by other admins. It can store up to 6 months of data. That’s all for the basic Salesforce interview questions for freshers. Let’s move on to the next section of intermediate Salesforce interview questions and answers.
Question:- What happens to the Detail (Child) record when a Master (Parent) record is deleted?
Answer:- In a Master–Detail relationship, when a Master record is deleted, the Detail record also gets deleted, automatically. On the other hand, in a Lookup relationship, the Child record will not be deleted, even if the Parent record is deleted.
Question:- Can you have a roll-up summary field in the case of a Master–Detail relationship?
Answer:- Yes, we can have a roll-up summary in the case of a Master-Detail relationship but not in the case of a Lookup relationship. This is because a roll-up summary field is used to display a value in the Master record based on the values of a set of fields in the Detail record.
Question:- What is an sObject type?
Answer:- A sObject is any object that can be stored in the Force.com platform database. Apex allows the use of a generic sObject abstract type to represent any object. For example, ‘vehicle’ is a generic type, and ‘car’ and ‘motorbike’ are concrete types of ‘vehicle’.
Question:- What are triggers in Salesforce? How are they different from workflows?
Answer:- Triggers in Salesforce are called Apex triggers. These are distinct and are available specifically for common and expected actions like lead conversions. It is just a code that is executed before or after a record is inserted or updated. A trigger is different from a workflow as the former is a piece of code; whereas, a workflow is an automated process and uses no code.
Question:- What is trigger.new?
Answer:- Trigger.new returns a list of records that have been added recently to sObjects. The records that are yet to be saved in the database are returned. Only insert and update triggers have the sObject list, and records can only be modified before.trigger.
Question:- What is the minimum test coverage required to deploy a trigger?
Answer:- • System Administrator: Customization and administration of an application • Standard User: Can edit, view, update, or delete one’s own record • Read Only: Able to just view the records • Solution Manager: Comes with the standard user permission but also can manage categories and published solutions • Marketing User: Able to import leads into the organization, along with standard user permissions
Question:- Explain the Force.com platform.
Answer:- Force.com is the entire infrastructure and codebase on which the complete Salesforce application exists. In other words, Salesforce is built on Force.com, which is a Platform as a Service (PaaS) that lets us simplify the design, development, and deployment of cloud-based applications and websites. Salesforce Developers can work with Cloud Integrated Development Environment and deploy the applications on Force.com servers.
Question:- List various types of reports available in Salesforce.
Answer:- Below are the types of Salesforce reports: • Tabular report: In this, the grand total is displayed in a table format. • Matrix report: This is an in-depth report wherein there are both row-based and column-based groups. • Summary report: A summary report is a report in which the grouping is on a column basis. • Joined report: Joining two or more reports into one creates a joined report.
Question:- How many reports can be added to the Salesforce dashboard?
Answer:- A Salesforce dashboard can be seen as a visual and pictorial representation of a dashboard with the facility to add up to 20 reports.
Question:- Explain various Salesforce dashboard components.
Answer:- Various Salesforce dashboard components are explained below: • Gauge: It is used for showing a single value within a range of custom values. • Metric: This is used for displaying a single key–value pair. It is possible to click the empty text field next to the grand total and enter the metric label directly on the components. All metrics placed above and below one another in the dashboard column would be displayed as a single component. Other dashboard components are explained below: • Table: The report data can be shown in a column form using a t • Visualforce page: It is used for creating a custom component or showing information not available in other component types. • Custom S-component: This contains the content that is run or displayed in a browser like an Excel file, ActiveX Control, Java applet, or custom HTML web form.
Question:- What is Visualforce in Force.com?
Answer:- Visualforce can be defined as the user interface for the Force.com platform. It is a component-based framework that can include over 100 in-built components. It includes a tag-based markup language, and each Visualforce tag corresponds to a page or a field. The Visualforce framework works on the standard MVC paradigm. It is possible to have tight integration with the database and also deploy auto-generated controllers for database objects. Developers can use Apex codes to write their own controllers. It is also possible to access AJAX components, or they can create their own components.
Question:- What is a static resource in Salesforce?
Answer:- A static resource lets us upload content that is in the form of .jar and .zip formats, style sheets, JavaScript, and so on. It is recommended to deploy a static resource rather than uploading files to the Documents tab since it is possible to pack a set of files into a directory hierarchy and upload it. These files can easily be referred to on a Visualforce page.
Question:- Differentiate between Salesforce Object Query Language and Salesforce Object Search Language.
Answer:- • Salesforce Object Query Language (SOQL) lets us search for only one object. We can query for all types of fields in SOQL. Data Manipulation Language (DML) operations can be performed on the query results. • Salesforce Object Search Language (SOSL) lets us search for multiple objects. But, in SOSL, we can query only for texts, emails, and phone numbers. Also, DML operations cannot be performed on the search results.
