Top 40 Salesforce Developer Interview Questions You Must Prepare 19.Mar.2024

No, it is not possible to schedule a dynamic dashboard in Salesforce.

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

Salesforce is a CRM delivered as a software-as-a-service (SaaS).

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.

Permission sets extend users functional access without changing users profile.

Lx: A user has only read access through profile on custoni 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.

Junction objects are used to build many-to-many relationships between objects.  You can take a recruiting application example, where a position for a job can be linked to many candidates and in the same manner a candidate can be linked to the different positions. So, to connect this data model, you need a third party object, this object is referred as junction object.  Here “job application” is the junction object.

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

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

As Salesforce comes under SaaS, one can use only one controller and as many extension controller.

Actions available in workflow are

  • Email Alert
  • Task
  • Field Update
  • Outbound Message

Different types of reports available in Salesforce are

  • Tabular report: It displays the grand total in the table form
  • Matrix report: It is a detailed report in which the grouping is done based on both rows and columns
  • Summary report: It is a detailed form of the report in which the grouping is done based on columns
  • Joined report: With this two or more reports can be joined in the single reports

With the help of static resources, you can upload zip files, images, jar files, JavaScript and CSS files that can be referred in a visual force page. The optimum size of static resources for an organization is 250 mB.

  • Visual force page
  • Web service
  • Triggers
  • Email services

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.

Force.com is PaaS (Platform as a Service) while Salesforce.com is SaaS ( Software as a Service).

User can see their limit form setup, by clicking data.com administration/Users.  From the data.com users section, user can see their monthly limit and how many records are exported during the month.

95% of triggers are before triggers – so if you’re unsure, go with before!

You may be wondering why so many triggers are before triggers. There’s a good reason – they’re simpler to use. If you need to make any changes to a record entering your after trigger, you have to do a DML statement. This isn’t necessary in a before trigger – changes to records entering your trigger always save!

The specific use case of an after trigger is when you need to associate any record to a record being created in your trigger. Here’s an example:

// Automatically create an Opp when an Account is created
trigger AutoOpp on Account(after insert) {
  List<Opportunity> newOpps = new List<Opportunity>();
  for (Account acc : Trigger.new) {
    Opportunity opp = new Opportunity();
    opp.Name        = acc.Name + ' Opportunity';
    opp.StageName   = 'Prospecting';
    opp.CloseDate   = Date.today() + 90;
    opp.AccountId   = acc.Id; // Use the trigger record's ID
    newOpps.add(opp);
  }
  insert newOpps;
}

Sales force records all the basic details like the number of customers served daily, daily sales volume, sales manager detailed reports, sales numbers in each month or quarter.  Also, it keeps a track on the repeat customer, which is key to success for any sales organization.

There are two types of relationships

  1. Master detail relationship
  2. Lookup relationship

SOQL ( Salesforce Object Query Language)

  • Only one object at a time can be searched
  • Query all type of fields
  • It can be used in triggers and classes
  • DML operation can be performed on query results

SOSL (Salesforce Object Search Language)

  • Many objects can be searched at a time
  • Query only e-mail, phone and text
  • It can be used in classes but not in triggers
  • DML operation cannot be performed on search result

Custom objects are nothing but database tables. It stores data related to your company in Salesforce.com. Once you have defined custom object you can do following things like

  • Create custom fields
  • Associate the custom object with other records
  • In custom related lists, it display the custom object data
  • For custom object, records track events and tasks
  • Build page layouts
  • For the custom object create a custom tab
  • To analyze custom object data create dashboards and reports
  • Share your custom tabs, custom apps, custom objects and any other related components

  1. While creation of field
  2. Validation rules
  3. Page Layout level

Different types of object relations in Salesforce includes

  • One to many
  • Many to many
  • Master detail

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.

isNull: It supports for number field

isBlank: It supports for Text field

As a salesforce best practice, if something can be done using Configurations (Declarative) then its preferred over coding. The declarative framework is optimized for the platform and is always preffered.

Maximum we can use 10 field dependencies in VF page.

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.

4 Types of report in Salesforce.

  1. Tabular Reports: We can only displays the grand total in the table
  2. Summary Reports: It is a detail form of report in which the grouping done based on Columns.
  3. Matrix Reports: It is a detail form of report in which the grouping done based on both Rows and Columns.
  4. Joined Reports: We can join the two or more reports in the single report displayed in the form of blocks.

Dashboard is the pictorial representation of the report, and we can add up to 20 reports in a single dashboard.

Not possible. Roll-up summary is enabled for only Master —Detail relationship.

Data loss may cause due to following reasons

  • Changing data and date-time
  • Altering to percent,number and currency from other data types
  • Changing from multi-select picklist, checkbox, auto number to other types
  • Altering to multi-select picklist from any type except picklist
  • Changing to auto-number except from text
  • Changing from text-area to e-mail, phone, URL and text

Different types of custom settings in Salesforce includes

  • Hierarchy type
  • List type

Audit trail function is helpful in knowing the information or track all the recent setup changes that the administration does to the organization.  It can store last 6 months data.

Object relationship overview in Salesforce is used to link custom object records to standard object records in a related list. In simple words, it is helpful to track product defects associated with customer cases. You can define different types of relationship by creating custom relationship fields on an object.

  • As SaaS is a subscription based, customers can always choose not to renew if they are dissatisfied
  • Customers can avoid a large initial investment in an IT infrastructure and day to day hustle of maintaining infrastructure
  • SaaS customer provides same provider infrastructure and also easy integration
  • SaaS applications use a simple internet interface that makes easier for customer to use.
  • SaaS always provide a latest platform to the customer with innovation.

Difference Between 15 and 18 Digit Record Id. Hi Experts, I would like to know the exact difference between 15 and 18 digits record id. Most of us say, 15 digit(case sensitive) and 18 digit(case insensitive).

Trigger is a code that is executed before or after the record is updated or inserted.

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.