Header Ads Widget

sfdc interview differences part1


  1. Difference Between SOQL and SOSL?

SOQL
SOSL
soql stands for salesforce query language 
sosl stands for salesforce search language
Need to write different soql against diff objects
works on multiple objects at same time
Soql against same field will be slow       
All fields are alredy text indexed
 can be used in apex classes and triggers.
 Cannot be used in triggers, can be                                                                   used in apex classes anonymous block.



2. Difference between Workflow and Approval Process?  

Workflow
Approval Process
They are activated when a record is saved. 
Approval process is triggered by explicitly clicking the "Submit for Approval" button.
Workflow consists of single step and single action         Approval process consists of multiple steps. Also different action is taken based upon whether the record is approved or rejected.     
Approval process consists of multiple steps. Also different action is taken based upon whether the record is approved or rejected.
Workflow consists of single step and single action
In approvals some attributes cannot be modified. Processes must be deactivated before approvals delete.

3.Difference between created, and every time it’s edited and created, and any time it’s edited to subsequently meet criteria in Salesforce

created, and every time it’s edited
created, and any time it’s edited to subsequently meet criteria in Salesforce
Fired whenever the record is created or edited and match the criteria.
Fired whenever the record is created or edited and previously did not meet the criteria and now matches the criteria.
Time dependent workflow actions cannot be created.
Time dependent work flow actions can be created.



4.What is the difference between Customizable Forecasts and Collaborative Forecasts?

Customizable Forecasts
Collaborative Forecasts
The forecast categories can reflect aggregate information.
The forecast categories only display information for that specific category.
Territory Management is supported.
Territory Management is not supported.

5.Difference between managed and unmanaged package in Salesforce

Unmanaged Package
Managed Package
Unmanaged packages are typically used to distribute open-source projects or application templates to provide developers with the basic building blocks for an application.
Managed packages are typically used bysalesforce.com partners to distribute and sell applications to customers.
Once the components are installed from an unmanaged package, the components can be edited in the organization they are installed in.
Once the components are installed from a managed package, the components cannot be edited in the organization they are installed in.



6.Difference between standardcontroller, controller and extensions in Salesforce?

Standard Controller:

  • Standard Controller is available for all API entities/objects as well as Custom objects.
  • Provides access to standard salesforce data and behavior.
  • Syntax:<apex:page standardcontroller="Account">

Custom Controller:

  • Custom Controller is an apex class that implements all the logic for a page without leveraging the functionality of a standard controller.
  • Are coded to create custom behavior.
  • Syntax:<apex:page controller="c13">
  • If you want to use one or more standard objects in apex class, there is only way to use custom controller.
  • If you use standard controller or extension controller, by default sharing rule is applicable ,so at that time only way is custom controller.

Extension Controller:

  • Any apex class having a public constructor with custom controller or standard controller object as  a single argument is known as controller extension.
  • It is an apex class which adds functionality to existing standard and custom controllers.
  • A visualforce Page can have multiple controller extensions, but only one standard or custom controller.
  • syntax:<apex: pagestandardcontroller="account" extension="hani143">

Post a Comment

0 Comments