To ace your Salesforce interview, along with understanding theory and having hands-on practical knowledge, practicing as many Salesforce Development Interview questions and answers is essential. Cloudely experts present you the Salesforce interview questions and answers through a series of articles in this section.
You can also find multiple real-time scenarios, use cases, errors, turnarounds and more. This article is the second in our Salesforce interview questions and answers series. We hope you will find it helpful.
1. DML has partial behavior or complete execution behavior?
Either all success or no success.
2. Can we use records of multiple objects in one UPSERT command?
No, we cannot.
3. What is multi-tenant architecture?
Whenever any platform shares resources with all customers, then this system is called multi-tenant architecture (MTA). Similar is the case with Salesforce Application.
4. ALL ROWS query will give non-deleted records or deleted records or both?
Both.
Note: That is why the name “ALL ROWS”
5. What are the differences between SOQL and SOSL?
SOQL(Salesforce Object Query Language)
- Using SOQL the user can make queries only on 1 object at a time.
- The user can query fields of any data type.
- The user can perform DML operations on query results.
- Return type: List
SOSL(Salesforce object Search Language)
- Using SOSL the user can make queries on many objects at an instance.
- We can query only on fields having type Name, phone, or Email.
- The user cannot perform DML operations on the search results.
- Return type: List of list
Suggested Reading: Salesforce Technical Questions and Answers
6. Why do we need 2 query languages in Salesforce?
SOQL is for “fetching” records based on some parameters/conditions.
Example:
get the records from the database where the country of customer = India
Here, Query has some conditions. We will not do any random table searches. Everything has to be clearly mentioned.
SOSL = for “searching” some information in the database.
Example:
If the user would like to write a code so that he/she can see records where the word “Andrew” is used in the database. (has no connection to any criteria like the above)
Search queries will have a “text” to search.
7. What are the variations in Count ()?
- Count()
- Count(Field’s API Name)
- Count_Distinct(Field’s API Name)
(THESE ARE ALSO CALLED AS AGGREGATE FUNCTIONS)
Count will display the result of all records while Count Distinct will display only distinct count. For example, a table has 5 records namely a,a,b,b,c then Count results in 5 while Count distinct results in 3.
8. What are Wild Characters / LIKE keywords and when are they used?
When we want to make a query on something which is not an exact value, like Name : “Andrew”, Tech : “Salesforce” etc., (these are exact values), and we only know the approx. format of it, in this case we can use the Wild characters.
This helps to find those records matching the xyz pattern.
Example:
We do not know that it’s “Salesforce” but we know it starts with “Sal” or ends with “ce”.
9. What are aggregate functions in SF?
MIN, MAX, COUNT, SUM, and AVG
Examples:
SELECT MAX(Andy__Experience__c) FROM
Object __Name __c
10. Which function do we use to load data from .CSV and do testing?
Test.loadData()
Suggested Reading: Salesforce Interview Questions Series 1
11. Types of Approval Processes?
- Jump Start Wizard
- Standard Setup wizard
12. Out of all Approval Processes which one will you select and why?
Jump Start Wizard
- This type is used to create a very simple Approval Process
- This has very few steps
- We get fewer options to configure
- Not regularly used in real-time scenarios
Standard Setup wizard
- This is a commonly used Approval process
- This has all features needed in the Approval Process
- This has more steps compared to Jump Start Wizard
- This will give us the right to configure the Approval Process in a detailed manner
- This is used when there is a complex business scenario/requirement
13. What is the Outbound Message feature?
This is a feature by which we can connect from the Salesforce platform to other external platforms “without any code”. This works similar to Workflow rule action, i.e. it will work when any record is created/updated.
14. How can we check whether OBM is triggered or not?
We can check the status of the OBM from “Outbound Messages” in the setup.
15. What are Time Dependent actions in Salesforce?
There are some cases where we do not want to execute a particular action instantly, rather, we want the particular action to happen after viz. 1 hr, 10 hrs, 10 days, etc., In such a scenario we can achieve the solution by time-dependent actions in salesforce.
16. To what all entities can we create a Task?
User and Role
17. Can we have a merge field in the Task email body?
No
18. What are the types of email templates we can create in Salesforce?
- Text
- HTML (using Letterhead)
- Custom (without using Letterhead)
- Visualforce
19. Difference between Public Group and Queue?
Queue
- It is a group of users
- We use this for transferring the ownership of records
- We use Queue not to share the record with group of users, but to transfer the “responsibility” of that business entity (record) with them.(Ex: Object Deal__c)
- We mostly use this concept with approval process as well as Lead object
- In Lead object, we use this for load balancing, means, giving ownership of a lead record to a group of users.
Public Group
- This is a group of people we can add from any department (its not necessary that members of Public Group are from same department)
- Helps to share records with large number of users in one click
- Useful in Manual sharing / Sharing rule.
- Once created, we can use Public Group for any object.
20. What is Sharing Rule and how many types of Sharing rules we have in Salesforce?
To share the records, based on some conditions, we use Sharing Rules (dynamic sharing). This is also called as Selective Sharing.
Types of Sharing Rules
- Owner based Sharing Rule
- Criteria Based Sharing Rule
- Guest user sharing (not commonly used)
Learn Salesforce with Cloudely
Salesforce is one of the career paths that any software job aspirant can choose. You can learn the technology with ease under the expert guidance and dedication.
Begin your Salesforce career with our online Salesforce training programs. Enroll now.
Found this article informative? Share this article.
Looking for expert answers to Salesforce questions? Send them to salesforce@cloudely.com. Our Salesforce experts will answer your queries.