You are on page 1of 69

1. Through Sales force Import wizard how many records we can import?

--------------------------------------------------------------------Using Import wizard, we can upload up to 50000 records.

2. Import wizard will support for which Objects?

------------------------------------------------Only Accounts, Contacts and custom objects data can be imported. If we want to import other
objects like Opportunities and other objects data, then we need to go for Apex Data Loader.

3. What is app exchange?

-----------------------The developed custom applications can be uploaded into the app exchange so that the other person
can share the applicaition.

4. What is a VLOOKUP in S.F?

---------------------------VLOOKUP is actually a function in sales force which is used to bring relevant value to that record
from another record automatically.

5. When I want to export data into SF from Apex Data Loader, which Option should be enable in
------------------------------------------------------------------------------------------------------Enable API

6. What is a web - lead?

------------------------Capturing a lead from a website and routing it into lead object in Sales Force is called wed-lead (web
to lead).

7. What are the Types of Account and difference between them?

------------------------------------------------------------We have two types of accounts.

Personal accounts
Business accounts

In personal accounts, persons name will be taken as primary considerations where as in business
accounts, there will be no person name, but company name will be taken into consideration.

8. What is a Wrapper Class in S.F?

---------------------------------A wrapper class is a class whose instances are collections of other objects.

9. What are formula and Rollup Summary fields and Difference between them? When should RollupSummary field enable?
--------------------------------------------------------------------------------------------------------------------Formula: A read-only field that derives its value from a formula expression that we define. The
formula field is updated when any of the source fields change.
Rollup Summary: A read-only field that displays the sum, minimum, or maximum value of a field in a
related list or the record count of all records listed in a related list.

10. What is a Sandbox? What are all the Types of sandboxex?

----------------------------------------------------------Sandbox is the exact replica of the production.

3 Types:

Q:What is the difference between custom controller and extension?
-----------------------------------------------------------------Ans:A controller extension is an Apex class that extends the functionality of a standard or custom

Q:What are different kinds of dashboard component?

--------------------------------------------------Ans: Chart: Use a chart when you want to show data graphically.
Gauge: Use a gauge when you have a single value that you want to show within a range of custom
Metric: Use a metric when you have one key value to display.
Table: Use a table to show a set of report data in column form.


-------------------------------------------Total number of SOQL queries issued----100
Total number of SOQL queries issued for Batch Apex and future methods-----200
Total number of records retrieved by SOQL queries----50,000
Total number of records retrieved by Database.getQueryLocator------10,000
Total number of SOSL queries issued-------20
Total number of records retrieved by a single SOSL query---------200


--------------------------------------------------The maximum batch size is 2,000 records.




Its a Salesforce Object Query Language


Search in Single Object.

Its a Salesforce Object Search

Search in Entire Organization or Data base.

Returns Records.

Returns Fields.

It can use in Triggers.

It can not use in Triggers.

Q:Why can't we use SoSL in Triggers?

------------------------------------SOSL statements evaluate to a list of sObjects, where each list contains the search results for a
particular sObject type.
SOSL queries are only supported in Apex classes and anonymous blocks.You cannot use a SOSL
query in a trigger


---------------------------------------------------by using data import wizard we can import a number of standard Salesforce objects, including
accounts, contacts, leads, and solutions and custom objects




--------------------------------------------------Contact Manager


The difference is that you can include aggregate functions(avg(),count(),sum(),min(),max()) in a
HAVING clause, but not in a WHERE clause


1. we know in which objects or fields the data resides.
2. we want to retrieve data from a single object or from multiple objects that are related to one
3. we want to retrieve data from number, date, or checkbox fields.
4. we want to count the number of records that meet specified criteria.
5. we want to sort results as part of the query.

1.we don't know in which object or field the data resides
2.we want to retrieve multiple objects and fields efficiently
3.we want to retrieve data for a particular division in an organization using the divisions feature


it is used to display a single custom message using the Salesforce formatting. and also we can specify
the severity (which will control the display of the message like warning or info message) and the
strength (which will control the size of the box).

It is used to display all of the messages on a page. that means It will display Salesforce generated
messages as well as custom messages added to the Apex class


It is used to display an error on only a very specific field and also it allow developers to place field
specific errors in a specific location.

It is similar to apex:message, but it displays all of the errors. These errors are displayed as a list with
no styling

Q:What Is The Difference Between Shallow And Deep Clone ?

---------------------------------------------------------Deep Clone:Creates a new list and adds all the elements of an existing list into that new list.
Note: This method can be used only for Sobject lists and not for primitive lists

Shallow Clone:
Records from the existing list will not be actually added into the new list but only a reference will be

Q:Why We Need To Follow The Apex Governor Limits?

------------------------------------------------Governor Limits are runtime limits enforced by the Apex runtime engine. Because Apex runs in a
shared, multitenant environment,the Apex runtime engine strictly enforces a number of limits like
memory, database resources, number of script statements .
if code exceeds limit it will throw a error message like runtime exception

Q:What Are The Apex Governor Limits?

-------------------------------------Total number of SOQL queries issued: 100
-Total number of SOQL queries issued for Batch Apex and future methods: 200
-Total number of records retrieved by SOQL queries: 50,000 Total number of records retrieved by a
single SOSL query: 200
-Total number of DML statements issued: 150
-Total number of records processed as a result of DML statements, Approval.process, or
database.emptyRecycleBin: 10,000
-Total number of executed code statements: 200,000
-Total number of executed code statements for Batch Apex and future methods: 1,000,000
-Total heap size: 3 MB
-Total heap size for Batch Apex and future methods: 6 MB
-Total stack depth for any Apex invocation that recursively fires triggers due to insert, update, or
delete statements: 16 For loop list batch size: 200
-Total number of callouts (HTTP requests or Web services calls) in a request: 10
-Maximum timeout for all callouts (HTTP requests or Web services calls) in a request: 120 seconds
-Default timeout of callouts (HTTP requests or Web services calls) in a request: 10 seconds
-Total number of methods with the future annotation allowed per Apex invocation: 10
-Maximum size of callout request or response (HTTP request or Web services call): 3 MB

-Maximum number of characters for a class: 1 million

-Maximum number of characters for a trigger: 1 million
-Maximum amount of code used by all Apex scripts in an organization: 2 MB
-If a SOQL query runs more than 120 seconds, the request can be canceled by Salesforce.
-Each Apex request is limited to 10 minutes of execution. A callout request to a given URL is limited
to a maximum of 20 simultaneous requests
-Total number of sendEmail methods allowed: 10
-Total number of describes allowed: 100

Q:What are Apex Code Performance Best Practices?

------------------------------------------------Bulkify your Code.
-Avoid SOQL Queries or DML statements inside FOR Loops.
-Bulkify your Helper Methods. Using Collections, Streamlining Queries, and Efficient For Loops.
-Streamlining Multiple Triggers on the Same Object.
-Querying Large Data Sets.
-Use of the Limits Apex Methods to Avoid Hitting Governor Limits.
-Writing Test Methods to Verify Large Datasets.
-void Hardcoding IDs.

Q:What are The Salesforce Change Sets Best Practices?

------------------------------------------------------Deploy all dependent components
-Plan deployments around maintenance schedule
-Validate change sets before deployment
-Validate change sets before deployment
-Deleting and renaming components:You can't use change sets to delete or rename components.

Q:What are Salesforce Testing Performance Best Practices?

----------------------------------------------------------Create all records in your test from scratch.
-Use System.assertEquals() to see if your code has the expected Results.
-Test for scenarios that should not work.
-Test in bulk

Q:How To Deploy Code Using Change Sets In Salesforce?

-----------------------------------------------------Well deploy our code from sandbox to production org by Using the Normal Salesforce tool Change

Q:How To Switch ON The Development Mode in Salesforce?

------------------------------------------------------Name--> My Settings --> Personal--> Advanced User Details--> Edit --> Enable Development Mode

Q:What are custom settings?

--------------------------Custom settings are similar to custom objects and enable application developers to create custom sets
of data, as well as create and associate it to the profile or user.

types of custom settings

-----------------------1.list custom setting:
List custom settings allow us to store org-wide static data that is frequently used.
For instance, does not have ISO country codes baked into the platform. At my last
company we maintained this list of countries and their ISO codes in a separate custom object.
Whenever we needed the data we'd have to query this custom object.

2.Hierarchy settings:
Hierarchy settings allow you to personalize your application for different profiles and/or users

limitations in custom settings:

-------------------------------It supports only limited field types like Checkbox, Currency, Date, Date/Time, Email, Number,
Percent, Phone, Text, Text Area, and URL
-We can not define validation rules on Custom Settings.
-We can not define any woirk flows or triggers.
-We can not re-arrange fields on the page layout for Custom Settings.

Q:What is the difference between Profile and Role?

-------------------------------------------------Profile is a collection of settings or permissions and A profile can have many users, but a user can
have only one profile
Role defines a position of user(s) within the organizational-wide hierarchy.

Q:What is the difference between Lookup and Master detail Relationship?

----------------------------------------------------------------------MD relationship: A parent-child relationship in which the master object controls certain behaviors of
the detail object.
If we delete master records then detail (Child) records are deleted.
We can have maximum 2 master details on an objec
we can model 'many to many relationship(it allows each record of one obj to be linked
to multiple records from
another obj and vice versa)between
anytwo objects'

Lookup relationship: This type of relationship links two objects together, but has no effect on deletion
or security.

We can have maximum 25 lookup on an object.

Q: What are different portals in

-----------------------------------------------Partner Portal:
A partner portal allows partner users to log in to through a separate website and they
can only view & edit data that has been made available to them

Customer Portal:
Customer Portal provides an online support channel for customers allowing them to resolve their

Q:What is the use of Sites? Sites enables you to create public websites and applications that are directly integrated
with your Salesforce organization

Q:The Data Loader can be used with Group Edition?


Q:What is the difference between With sharing and With out sharing?
-------------------------------------------------------------------with sharing:this keyword defines that sharing rules are enforced to the current user
without sharing: this keyword defines that sharing rules are not enforces to the current user

We can use these two keywords on a class to specify whether or not to enforce the sharing rules.

Q:What is the difference between List and Set?

---------------------------------------------List is an ordered collection(all the values in the set ordered) of primitives or sObjects.
list allows duplicate values

Set is an unordered collection of primitives or sObjects.

set does not allow duplicate values.

Q:How can I create Many to Many relationship?

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

Q:A custom object contains some records, now my requirement is to create field in this object with
master detail relationship.
Can we create master detail relationship in this case?
-----------------------------------------------------------------------------------------------------------------------------No, directly we cannot create master details relationship if custom object contains existing records.
1.First create field with lookup relationship.
2.And then associate look field with parent record for every record
3. Next change the data type of the field from look up to Master detail.

Q:Does user can create insert their own custom logo, while creating their own custom applications?

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

Q:What is a Self Relationship?

-------------------------------Self Relationship is a lookup relationship to the same object. Suppose lets take an object
Here we can create relationship in between the Account to Account (same object) object. That is
called Self Relationship.

Q:What is difference between trigger and 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 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 SOQLs from data base in one trigger.

Q:What is difference insert() and database .insert() ?

-----------------------------------------------------Insert: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()

Q:What is Static Resources?

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

Q:How many ways we can share a record?

-------------------------------------1.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.


Defines the base line setting for the organization.

Defines the level of access to the user can see the other users record

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

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

3.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.

4.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

5.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.

Q:How many ways we can made field is required?

---------------------------------------------1.While creation of field

2. Validation rules

3. Page Layout level

Q:What is the maximum size of the PDF generated on visualforce attribute renderAs?

Q:What is difference between Action support and Action function?

---------------------------------------------------------------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 event occurs on page like
onMouseOver, onClick, ect and we can use action support for particular single apex component.

Q:How many ways we can call the Apex class?

------------------------------------------1. Visual force page

2. Web Service

3. Triggers

4. Email services

Q:How to create Master Details relationship between existing records?

--------------------------------------------------------------------Directly we cant create Master Detail relationship between existing records,
first we have to create Lookup relationship and provide valid lookup fields and it shouldnt null.

Q:How we can change the Grant access using role hierarchy for standard objects?
------------------------------------------------------------------------------Not possible.

Q:Is check box performs like controlling field?

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

Q:How many field dependencies we can use in Visual Force page?

--------------------------------------------------------------Maximum we can use 10 field dependencies in VF page.

Q:What is Roll-up summary?

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

Q:What are the Record Types?


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

Q;How to create Roll-up summary field on lookup relation?

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

Q:What is Audit Trail?

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

Q:What are the Report Types?

---------------------------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
Joined Reports: We can join the two or more reports in the single report displayed in the form of

Q:What is Dashboard?
-------------------Dashboard is a pictorial representation of report. We can add up to 20 reports in single dashboard.

Q:Do governor limits apply to sandbox instances?

-----------------------------------------------Governor limits do apply to all Salesforce instances (trial, developer, production or sandbox

Q:How to schedule export or take the backup of salesforce?

---------------------------------------------------------data export operation allows users to retrive the records from the database and we can generate
backup files manually once
every six days or schedule them to generate automatically at weekly or monthly intervals. The backup
file will come to you in the form a zip

Points to Remember:
Formula and roll-up summary fields are never included in exports.
Articles are not included from exports.
The export notification email is sent to the email address on file for the user who created the
scheduled export.

Q:Is it possible to change the existing data types of custom fields, if Yes please explanin?
-------------------------------------------------------------------------------------------Yes. Its possible but Changing the data type of an existing custom field can cause data loss in the
following situations:

Changing to or from type Date or Date/Time

Changing to Number from any other type
Changing to Percent from any other type
Changing to Currency from any other type
Changing from Checkbox to any other type
Changing from Picklist (Multi-Select) to any other type
Changing to Picklist (Multi-Select) from any type except Picklist

Changing from Auto Number to any other type

Changing to Auto Number from any type except Text
Changing from Text Area (Long) to any type except Email, Phone, Text, Text Area, or URL

Q:What is a dependent picklist?

------------------------------ Dependent fields can help make your data more accurate and consistent by applying filters.
A dependent field works in conjunction with a controlling field to filter its values.
The value chosen in the controlling field affects the values available in the dependent field.
-300 is the maximum number of values allowed in a controlling picklist
A custom multi-select picklist cannot be the controlling field for a dependent field.

Q:What is a Business Process?

---------------------------Available Business Processes:
-Sales Processes Create different sales processes that include some or all of the picklist values
available for the Opportunity Stage field
Support Processes Create different support processes that include some or all of the picklist values
available for the Case Status field
Lead Processes Create different lead processes that include some or all of the picklist values
available for the Lead Status field
Solution Processes Create different solution processes that include some or all of the picklist
values available for the Solution Status field

Q:What are the Objects available in the Salesforce Business Process



Q:On which tabs can I create multiple record types?

---------------------------------------------------Multiple record types may be created for every tab, with the exception of the Home, Forecasts,
Documents, and Reports tabs.

Q: What happens if I need to add a picklist value?

-------------------------------------------------We will be prompted to select which record types should include the new value.

Q: What about Web-to-Lead and Web-to-Case?

-----------------------------------------A lead or case record created through Web-to-Lead or Web-to-Case will set the record type to that of
the default lead owner

Q:What is Field-Level Security?

------------------------------ Defines users access to view and edit specific fields in the application.

Q:Why use Field-Level Security?

------------------------------ Use Field-Level Security (rather than creating multiple page layouts) to enforce data security.
Users view data relevant to their job function Troubleshooting Tools
Setup | Administration Setup | Security Controls | Field Accessibility

Field Level Security is not available in PE

Field-level security cannot be used to make a field required. This is done from the Page Layout
Field access settings can be defined using both field-level security and page layouts. However, the
most restrictive field access setting of the two will always apply. For example, if a field is required on
the page layout, but read-only in the field-level security settings, the field will be read-only.
Hiding a field from a user using FLS also hides that field from list views, search results, and reports.

Q:What are Login Hours and Login IP Ranges?

------------------------------------------- Sets the hours when users with a particular profile can use the system
Sets the IP addresses from which users with a particular profile can log in

Two Options for Restricting Access via IP Ranges:

Option 1: Add Trusted IP Ranges for your entire org
Option 2: Add Trusted IP Ranges on a Profile by Profile basis

Q:What are Organization Wide Defaults?

------------------------------------- Defines the baseline level of access to data records for all users in the Organization
Used to restrict access to data

Access levels:
-Public Read/Write
-Public Read/Write/Transfer
-Controlled by Parent
-Public Read Only

Q: What is a Role and Role Hierarchy?


Controls the level of visibility that users have to an organizations data
A user may be associated to one role
- You can create up to 500 roles for your organization

Role Hierarchy:
Controls data visibility.
Controls record roll up forecasting and reporting.
Users inherit the special privileges of data shared with users below them in the hierarchy.

Q:What is a Sharing Rule?

------------------------ Automated rules that grant access (read only and read/write) to groups of users.
It creates Exceptions to Organization Wide Defaults.

Q: What is an Account Team?

--------------------------- Used for collaborative account management
Used for sharing as well as reporting purposes
- Default Account Teams may be automatically added to a users accounts

Who can add an account team:

Anyone above owner in role hierarchy

Q:What is an Case Team?


Case teams enable full communication and collaboration on solving customer issues. under case tem
we can
Add teams of users to cases
Create a workflow for case teams
Predefine case teams for users
Determine the level of access

Q: What is Access at the Role Level?

------------------------------------- Defined when creating a role
Level of access to Opportunities associated to Accounts
Level of access to Contacts associated to Accounts
Level of access to Cases associated to Accounts

Q:What is a Sales Team?

----------------------- Used for collaborative selling
Used for sharing as well as reporting purposes
Default Sales Teams may be automatically added to a users opportunities

Who can add a Sales Team:

Anyone above owner in role hierarchy

Click Setup --> My PERSONAL Information --> Personal Information

Q:What are Folders?

------------------- Used for organizing EMAIL TEMPLATES, documents, reports and dashboards
Access is defined Read or Read/Write
The size limit for documents uploaded is 5MB.
- The size limit for document filenames is 255 characters including the file extension

Q: What is a Workflow Rule?

--------------------------- Defined trigger criteria based on business requirements.
When trigger criteria is met workflow actions, such as email alerts, tasks, field updates, or outbound
messages are generated

Q:What is a Workflow Task?

------------------------- When a Workflow Rule is met,a Task may be assigned to designated users
Workflow Tasks may be assigned to a user, role, record owner, record creator, sales team role, or
account team

Q: What is a Workflow Alert?

--------------------------- Workflow Alerts are emails generated by a workflow rule whenever specific Business Actions
trigger the rule
- Can send alerts to Users, Roles,

Q:What is a Workflow Field Update?

----------------------------------filed update is an action that allow users to change the value of a field to a value that we specify.

Depending on the type of field,

. we can apply a specific value

. we can make the value blank

Q:What is Time-Dependent Workflow?

-----------------------------------Time-Dependent Workflow execute time-sensitive actions before or after any date on the record.
-perform a series of actions at various points in time.

Q: Working with Time-Dependent workflow

---------------------------------------Time Triggers:
are used to initiate a time-dependent actions(task,email alert,filed update,outbound message)

Q:Time-Dependent Workflow Considerations

------------------------------------------- Maximum of 10 time triggers per rule
- Maximum of 40 actions (10 x 4 types) per time trigger, and 80 actions per workflow rule
- Time triggers cannot be added to or removed from activated workflow rules
- Time dependent workflow not possible with a trigger type of Every time the record is created or

Q:When The Add Time Trigger button is unavailable?


- Whenever the evaluation criteria is set to Evaluate the rule when a record is: created, and every time
its edited.
- Whenever the rule is activated.
- Whenever we have pending actions in the workflow queue.

Q: Time-Dependent Workflow Limitations?

---------------------------------------- Time triggers dont support minutes or seconds.
- Time triggers can not reference DATE or DATETIME fields
- Time triggers can not reference Formula fields that include related-object merge fields.

Q:What is Approval Processing?

-----------------------------An approval process is an automated Business Process that an organization can use to approve records
in Salesforce.

An approval process specifies the:

Steps necessary for a record to be approved
Who must approve it at each step
The actions to take when a record is approved or rejected .

Q:Q:What is a Fiscal Year in Salesforce?

-------------------------------------- Used for an organizations financial planning
Usually a year in length
Impacts forecasts, quotas and reports

Standard Fiscal Years:

are periods that follow the Gregorian calendar, but can start on the first day of any month of the year.

-Custom Fiscal Years:

some of the organisations break down their fiscal year into months and weeks based on thier financial
planning requirement.

Q:Jump Start Wizard vs. Standard Wizard

--------------------------------------- The jump start wizard is useful for simple approval processes with a single step
The Standard Wizard is useful for complex approval processes step by step.

Q:What are Custom Report Types?

------------------------------ Custom report types allow you to build a framework in the report wizard from which users can
create and customize reports.

Q:What is a Case Assignment Rule?

--------------------------------- Determines how Cases are automatically routed to User or Queue
Contains Rule Entries, pre-defined business rules, that determine Case routing.

Q:What is Web-to-Case?

--------------------- A web form that is published to a web site.

Customers use to submit inquiries or issues online.

Q:What is Email-to-Case?
------------------------ It Automatically create a case when a customer sent a email to case team in organisation.
- Email-to-Case helps organisation to efficiently resolve and correspond with customer inquiries via

Q:What are Auto-Response Rules?

-------------------------------An auto-response rule is a set of conditions for sending automatic email responses to lead or case
submissions based on the record's attributes.

-Auto response rules help to send quick replies to customers to let them know we have received their
inquiry or issue.

Q:What is an Escalation Rule?

---------------------------- It Automatically escalates an unresolved Case within a certain period of time (age over) Based on
pre-defined business criteria,

Q:How many types of the relationship fields available in Salesforce?

-------------------------------------------------------------------There are Four types of the Relationship fields available in Salesforce

1. Master Detail
2. Many to Many
3. Lookup
4. Hierarchical (It is only available on User Object, we cannot create this relationship to other SFDC

Q:What will happen if the Account is deleted?

---------------------------------------------If the Account is deleted then Contact, Opportunity will also be deleted from Salesforce.
Contact and Opportunity are related to that Account.

Q: What are the types of email templates available in

---------------------------------------------------------------------1. Text
2. HTML with Letter Head
3. Custom HTML
4. Visual force

Q:How to delete the User from Salesforce?

-----------------------------------------salesforce does not allow to delete any user, however we can deactivate the users.

Apart from this if we can delete the users data by using 'mass delete record'
Setup-> Administration Setup-> Data Management-> Mass Delete Record

Q:What is difference between WhoId and WhatId in the SFDC Data Model of Task/Events ?
-------------------------------------------------------------------------------------WhoID Lead ID or a Contact ID
WhatID Account ID or an Opportunity ID or Custom Object ID

Q:Can we convert lookup to master detail relationship if yes what must be the condition to convert?
---------------------------------------------------------------------------------------------------- yes,We can convert the lookup relationship to master detail relationship only if all the existing
record has valid lookup field values.

Q:Can we create Master Detail relationship on existing records?

-----------------------------------------------------------------No, first we have to create the lookup relationship then populate the value on all existing record and
then convert it to MD.

Q:In How many way we can invoke the Apex class?

----------------------------------------------1. Visualforce page
2. Trigger
3. Web Services
4. Email Services

Q:What is the difference between a standard controller and custom controller?

-----------------------------------------------------------------------------SC:standard controller is defined as an inherits all the standard object properties, standard
button functionalities from salesforce

CC:Custom controller defines custom functionalities and we need to define each and every line of
logic. salesforce doesnot provide anything.

Q:If page is having multiple extenssions and if two extenssions have methods of same name.
which method out of these two will be called upon calling from vf page ?


------------------------------------------------------------------------------------------------------------------------------------- The one which is present in the controller defined on the left side will be called because leftmost
extension overrides all the other extensions

Q:how can we implement pagination in visualforce ?

-------------------------------------------------- By using standardset controllers we can implement pagination.

Q:What is a externalid in salesforce?

-------------------------------------- It is a field which can be used to store a value that is used as a refernce for that record in other
for example let us assume that i have a record in system xyz where it is refereced by some value that
value can be used as external id in salesforce for the same record.

Q:How can you override a list button with a visuaflorce page?

------------------------------------------------------------- First of all Visualforce page should be a list controller i.e, it should have "recordsetVar" attribute
defined in page tag.

Q: What is the advantage of using custom settings?

--------------------------------------------------- We dont have to query in apex (fire select query) to retrieve the data stored in custom settings.

Q:Can you have more than one extenssions associated with a single page?
-----------------------------------------------------------------------Yes we can have more than extenssions

Q:Is it possible to bypass Grant Access Using Hierarchies in case of standard objects ?
----------------------------------------------------------------------------------------No. This is default and cannot be changed.

Q:How can you call a controller method from java script ?

---------------------------------------------------------By Using action function component we can call controller method from java script.

Q; How can you call a visualforce page from a controller method?


By Using pagereference object we can call a visualforce page from controller method.

Q:How can you sort a select SOQl query ?

---------------------------------------We can use ORDER BY clause in a SELECT statement to sort or control the list of records.

Q: How much code coverage is needed for deployment?

--------------------------------------------------Each trigger should have minimum of 1%, Class can have 0%. But, the total code covergae of 75%.

Q:How to get current loggedin users id in apex ?

------------------------------------------------- By using 'Userinfo.getuserid()' we can get the current loggedin user's id in apex

Q:How to convert a csv file browsed in visualforce page into a string?

----------------------------------------------------------------------- we can use ' csvfilecontents.tostring().method' statement.

Q:How many records can a select query return ?


-As of now it can return upto 50000 records.

Q:How many records can a sosl query return ?

-------------------------------------------- As of now it can return upto 2000 records

Q:How to fire dynamic query in soql?

------------------------------------Using 'database.query'
Example: List<account> accList = Database.query('select name from account');

Q:What is a bucket field in reports?

------------------------------------- This field is used for custom grouping of values in a field. also it can be used in summarising the

Q: What are dynamic dashboards ?

-------------------------------- Dashboards which run for loggedin user are dynamic dashboards

Q:Can the dynamic dashboards be scheduled?

-----------------------------------------_ No, they can not be scheduled.

Q:How can you use CUSTOM LABEL; in visualforc page?

---------------------------------------------------- {!$Label.Samplelabel} by using this syntax we can .

Q:What are maps in apex?

------------------------ Map has key values and keypaired values.
- Map can be used to store realationship between two entities.
- key value is a unique value where as keypaired value is a duplicate value.

Q:.Can we have roll up summary fields in case of parent child relationship(lookup relationship)?
---------------------------------------------------------------------------------------------- No. These are present only in case of master details relationship.

Q: What is the difference between action function and action support ?

---------------------------------------------------------------------- Action functions can call controller method from java script.
- Action support adds support to other components.

Q; What is action poller in visualforce ?

------------------------------------------ Action poller sends AJAX( assynchronous java and XML) request with a specified time interval.It is
like a partial refreshment of page based on time intervel that we speified in code

Q:How many active assignments rule can you have in lead/Case?

------------------------------------------------------------- We can have only one active assignment rule at a time

Q: How do we access static resource in visualforce?

---------------------------------------------------- <apex: includescript values= {! $Resource.fileName}/> by using this syntax we can .

Q:How to embed a visaulflow in a visualforce page ?

---------------------------------------------------- <flow:interview /> by using this syntax we can .

Q: How to enable inline editing in visauflorce page ?

----------------------------------------------------- We can enable inline editing in visualforce page by using '<apex:inlineEditSupport>' component.

Q: What is '' in trigger ?

----------------------------------- is a list of records is a list of records that are in the context of trigger.

Q:How do we bulkify the trigger ?


- Bulkfification requires iterating over all the records in trigger context.

for example : for(account ac:


// your logic here

Q:How can we get the old value in trigger ?

------------------------------------------By using trigger.old map we can get previous values of fields.

Q:Can we modify records directly in ?

------------------------------------------------- is a read only list, but field values can be changed in case of before trigger .

Q:What does the error "list has no rows for assignment" mean?
------------------------------------------------------------- it means the list you are trying to access has no values in it .

Q:Why should we not write select query within for loop?


- Writing select query within for loop may hit the governer limit of 100 select queries.

Q:What should we do to avoid view state error in visualforce page?

------------------------------------------------------------------ Clear unused collections, define variable as transient.

Q:What is viewState?
-------------------ViewState holds state of the visualforce page that includes the fields, components and controller
.Viewstate data in encrypted and cannot be viewed
view state maximum size is 135KB

Q:Why do we need to write test classes?

--------------------------------------- Test Class provides a simple way of creating classes and objects to test our code in an xUnit style.
- Salesforce does not allow deployment in production if the test coverage is less than 75%.

Q:How can you show a custom error message in trigger?

----------------------------------------------------- This can be done by using 'addError()' method in trigger

Q: What is the use of future annotation?

---------------------------------------Future method starts execution when Salesforce has resources available

A future method runs in the background, asynchronously. We can call a future method for executing
long-running operations,

Q:How to identify if a class is a test class?

-------------------------------------------test class always begins with @isTest

Q:How to convert a blob variable into a string?

----------------------------------------------By Using 'toString' we can convert blob into string

Q:what are the different methods of batch apex class?

-----------------------------------------------------start method, execute method and finish method

Q:Can you use dml statement in visualforce compoenent controller ?

-----------------------------------------------------------------To use dml in visualforce component you have to declare allowdml=true in visualforce component
otherwise you will get an exception like "DML is currently not allowed"

Q: What different type of method can be defined for VF controllers?

-------------------------------------------------------------------getter methods, setter methods and action methods


Q:Can you write sosl in trigger>?

--------------------------------Earlier this was not allowed but now sosl are allowed in triggers.

Q: Which are the different access modifiers in apex?

----------------------------------------------------1. Private 2. Public 3. Protected 4.Global are the four access modifiers allowed in apex.

Q: Can we change the master of a detail record in salesforce ?

--------------------------------------------------------------yes by cheaking the cheakbox "Allow reparenting" .

Q:How can you lock records in apex?

----------------------------------using 'For update' in query we can lock the record.
For example: [select id,name from contact limit 10 For update];

Q: IS there any limit on the number of items that can be stored in apex collections?
------------------------------------------------------------------------------------no there is no such kind of limit.

Q:What is visaulforce component ?

---------------------------------It is a piece of code that can be reused .

Q: Ho can you display the status of an AJAX update request in a visualforce page ?
---------------------------------------------------------------------------------To display AJAX request status we can use <apex:actionstatus> tag .

Q:How can you access custom label in apex:

------------------------------------------System.Label.LabelNamehere by using this syntax we can .

Q:How can you get all the keys of a map variable ?

-------------------------------------------------By using method 'keyset()'
Example: Set<id> idSet = mapname.keyset();

Q:How can you compare values of a picklist field in validation rule?

-------------------------------------------------------------------By using 'ispickval()' method
syntax: ISPICKVAL(picklist_field, text_to_compare);

Q:What are the different types of sandboxes in salesforce ?

----------------------------------------------------------Developer sandbox
Developer Production sandbox

Partial Data sandbox

Full sandbox

Q: With what frequency can you refresh a full copy sandbox?

----------------------------------------------------------full copy sandbox can be refreshed every 29 days from production.

Q:How can you implement custom functionality for a standardcontroller visualforce page?
---------------------------------------------------------------------------------------This can be done by associating a controller class with that standard controller using "Extenssions"

Q:How can you get the current record id in a visualforce page ?

--------------------------------------------------------------By using ApexPages.CurrentPage().getparameters().get('id') we can get the current record id in vf

Q:Can a user change his own profile in salesforce ?

--------------------------------------------------No, a user cannot change change his own profile

Q:Can a user change his own role?

---------------------------------Yes this can be done

Q:Reset security token option is unavailabel in set up. What could be the reason?

---------------------------------------------------------------------------------If in the profile setting "login ip ranges" have been set up then the option of "reset security token" is

Q:What are the different data types that a standard field record name can have?
-------------------------------------------------------------------------------ecord name field can have either of the two data types : Auto Number or Text data type.

Q:Can you do a dml in constructor?

---------------------------------No, because Constructor is mainly used to initialization of variables. It is not used for doing DML

If you want to do DML operation during VF page loading, use action attrirbute in <apex:page>. Call a
method from the action in which DML operation is allowed.

Q:How long can a sandbox name be?

--------------------------------It can only be of upto 10 characters not more than that.

Q:Can you use sharing rules to restrict data access?

----------------------------------------------------No, sharing rule can only give wider access to data it cannot restrict data access.

Q:Can you edit a formula field values in a record?


formula fields are read only and cannot be edited.

Q: Can you edit roll up summary field values in a record?

---------------------------------------------------------No, roll up summary fields are read only and cannot be edited.

Q:Can you create a new profile from scratch ?

--------------------------------------------No, you have to clone from a existing profile and modify the settings as required.

Q: What are custom labels in saleforce?

---------------------------------------custom labels are custom text values that can be accessed from apex codes and visualforce pages.
character limit can be only 1000 characters.

Q:What is the difference between soql and sosl?

----------------------------------------------SOQL can query records from a single object at a time and SOQL returns a list .
SOSL query records from multiple objects and SOSL returns list of lists .

Q: How can you query all records using an soql statement?

--------------------------------------------------------This can be done using ALL ROWS keyword. This queries all records including deleted records .

Q: What are the different access modifiers that can be used with methods and variables?

--------------------------------------------------------------------------------------Global, Public, private and protected

Apex allows you to use the private, protected, public, and global access modifiers when defining
methods and variables.

While triggers and anonymous blocks can also use these access modifiers, they are not as useful in
smaller portions of Apex.

Q:What is the difference between role and profile?

--------------------------------------------------Role defines record level access while Profile is object level and field level access

Q:On which objects can you create Queues?

-----------------------------------------Queues can be created on two standard objects (Lead and case) and also on all custom objects.

Q:What is an apex transaction?

------------------------------An apex transaction represents set of operations that are executed as a single synchronous unit

Q:What does heap in apex mean?

-----------------------------Every apex transaction has its heap. Heap is nothing but the garbage collected at the end of every
apex transaction .

Q: How many callouts to external service can be made in a single apex transaction?

----------------------------------------------------------------------------------A total of 10 callouts are allowed in a single apex transaction .

Q:What is the maximum allowed time limit while making a callout to external service in apex?
-------------------------------------------------------------------------------------------maximum of 120 second time limit is enforced while making callout to external service

Q:How can you expose an apex class as a REST web service in salesforce?
----------------------------------------------------------------------An apex class can be exposed as REST web service by using keyword '@RestResource'

Q: Can a custom controller class accept arguments?

---------------------------------------------------No. A custom controller cannot accept any arguments and must use a no argument constructor for
outer class.

Q: What different type of method can be defined for VF controllers?

-------------------------------------------------------------------getter methods, setter methods and action methods

Q: What are getter methods, setter methods?

------------------------------------------Getter methods retrieve data from controller while setter methods pass data from page to controller .


Q. Can you edit a apex trigger/apex class in production environment ?

----------------------------------------------------------------------Ans: No apex trigger /class cannot be edited in production.

Q. Can you edit a visuaflorce apge in production environment ?

---------------------------------------------------------------Ans: Yes this can be done.

Q.How can you deliver a visualforce page in excel form ?

----------------------------------------------------------------------Ans: use contentType="application/" in page component of visualforce

Q. What does it mean when you get the error "too many soql queries 101 salesforce"
----------------------------------------------------------------------Ans: It means you are hitting the limit of 100 soql queries as per governers limit

Q. How can you create a input field for date on a visualforce page ?
------------------------------------------------------------------------------------Ans: To create a input date field on vf page you will have to bind it with a existing date field on any

Q.How can you convert a text to upper string ?

----------------------------------------------------------Ans: stringname.toUppercase();

Q.. How can you convert a integer into a string ?

------------------------------------------------------------Ans: string.valueof(integerName);

Q. How can you display different picklist values for picklist fields in different page layouts?
-------------------------------------------------------------------------------------------------------Ans: This can be done using record types.

Q. Ho can you place an entire visualforce page in a different visualforce page?

-------------------------------------------------------------------------------------------------Ans - This can be done using include attribute.

Q.What all data types can a set store?

------------------------------------------------Ans - A set can store all primitive data types and sObjects but not collections.

Q.What is the use of offset keyword in a soql query?


Ans - Using offset keyword return the records starting from desired location in the list. For example if
we specify offset 8 then all the records starting from location 9 onwards would be returned.

Q. How can you display an image as an field in a detail page of record?

-----------------------------------------------------------------------------------------Ans - This can be done using IMAGE function. A url of the image stored in document should be
given in image function.

Q.When a lead is converted into account/contact will the trigger on account/contact fire?
---------------------------------------------------------------------------------------------------------------Ans - In set up we can enable or disable whether triggers should run on conversion.

Q. Can you create sharing rules for detail objects?

----------------------------------------------------------------Ans - No. Detail objects cannot have sharing rules as the detail objects do not have owner field with

Q.What is the use of writing sharing rules?

---------------------------------------------------Ans - Sharing rules extend the record/data access level which is set using OWD, role hierarchy.
Sharing rule cannot restrict the data visibility but can only widen it.

Q. Which all field data types can be used as external ids?

---------------------------------------------------------------------Ans - An external id can be of type text, number or email type

Q. What is a mini page layout?

-------------------------------------------Ans - Mini page layout defines fields and related list to be displayed in hover detail and console tab.
Whenever you hover mouse over any recently viewed record the fields are displayed, related list is not
displayed(fields can be set in mini page layout). Console tab fields and related list on the right hand
side are also controlled by mini page layout.

Q.. What is the use of console view/console tab?

-----------------------------------------------------------Ans - Console gives list views and related list records for multiple objects on a single screen without
any customisation (visualforce page or controller)

Q.. What is the use of console view/console tab?

-----------------------------------------------------------Ans - Console gives list views and related list records for multiple objects on a single screen without
any customisation (visualforce page or controller).

Q. What are the different considerations that must be followed when using @future annotation in apex
------------------------------------------------------------------------------------------------------------------------------------------Ans - 1. Method must be static 2. It must return void and 3. method can have argument of type
primitives,collection of primitives or arrays of primitives .

Q. How can you execute batch apex programmatically?


Ans - Batch apex can be invokde using Database.executebatch(). Ex- Id batchprocessId =


Q. How can you set the batch size in batch apex ?

--------------------------------------------------------------Ans - This can be set using optional scope parameter in database.executebatch
(batchapexname,batchsize) example - Id batchprocessId = Database.executebatch
(mybatchapexclass,200) in this example batch size is set to 200.

Q.What is the difference between List type custom setting and Hierarchy type custom setting?
-----------------------------------------------------------------------------------------------------------------------Ans - List type stores static data that can be used in apex code
Hierarchy type stores data that may change depending on user,profile or org wide default.

Q.Where can custom setting data be accessed?

----------------------------------------------------------Ans - Custom setting data can be accessed in formula fields,validation rules,workflow rules,apex,API.

Q. What different return types can be returned by SOQL?

------------------------------------------------------------------------Ans - A SOQL can return List of objects, a single object or an integer.

Q. Can you set default access in Organization wide default for detail objects (detail object in case of
master detail relationship)?

Ans - No, Detail object will always have default access as 'Controlled by Parent' and it cannot be

Q. Can you create sharing rules for detail objects?

--------------------------------------------------------------Ans - No, this cannot be done.

Q.. Can standard object appear as detail (CHAILD)object?

------------------------------------------------------------------------------Ans - No, you cannot have standard object as detail object in case of master detail relationship.

Q.Can a user not have a role?

---------------------------------------Ans - Yes, this is possible, Role is not mandatory for user.

Q.How many custom fields can be created on a object?

---------------------------------------------------------------------Ans - Initial limit is of 500 fields and if needed this can be extended to 800 by raising a case with

Q:Email to Case
--------------By using the Email to Salesforce we can send email notifications to all users in organisation

->Apex is specifically designed for building business applications to manage

data and processes within the larger context of the platform

->visualforce concept allows developers to create new custom user interfaces for applications.

-a database is an organized collection of information-In a database, each entity is represented by a table

-A database table is simply a list of information, presented
with rows and columns

Q:Relational Database:
------------------a database structured to recognize relations between stored items of information

primary key:
-----------A primary key is a table column that can be used to uniquely identify every row of the table
primary key is a unique

foreign key :
------------foreign key is a column it is a copy of a primary key from another table.

foreign key is duplicate and always foreign key depends on primary key.

Primary and foreign keys are fundamental to the concept of relationships because they enable tables to
be related to each other

Q:In Which edition the Apex Data Loader will support? What are those editions?
-------------------------------------------------------------------------------Professional, Enterprise and Unlimited edition supports data loader.

Q:In which edition work flows are available in S.F?

--------------------------------------------------In Enterprise edition and in unlimited edition, we have these work flows.

Q:What are the types of bindings available in Visual force?

----------------------------------------------------------Using get;set in apex, we can bind variables in visual force.

Q:How many field dependencies we can use in Visual Force page?

-------------------------------------------------------------Maximum we can use 10 field dependencies in VF page.

Q:What is Field dependency?

--------------------------making one field dependent on other field means dependent field depends on the controling field.

Q:What are Global keywords?

--------------------------Used to access various values from components on a page

Q:What is MVC?
-------------The main aim of the MVC architecture is to separate the business logic and application data from the
presentation data to the user.

Model: The model object knows about all the data that need to be displayed.
View: The view represents the presentation of the application (User Interface).
Controller: Actual business logic of VF is present here.

Q:What are the Controllers available in

-------------------------------------------------3 types of controllers are available

Standard Controller: Used for both custom and standard objects.

Custom Controller: is an apex class that implements all the logic for a page without leveraging the
functionality of a standard controller.
Extension Controller: is an apex class which adds functionality to existing standard and custom

Q:What is a difference between render, rerender and renderAs?

---------------------------------------------------------------Render: is an attribute used in VF to hide or show certain components in visual force page.
Rerender: Used to refresh a part of a page in visual force page when an action occurs.
Render as: Used to convert entire visual force into PDF
Render as = pdf

Q:What are annotations and their types?

--------------------------------------Annotations are used to bypass the methods in the way they execute
@Future: Used to execute the methods asynchronously.
@IsTest: Used to test the methods.
@Remote Action

Q:When records are created in Salesforce, How it is queued for Indexing?

-----------------------------------------------------------------------If newly created records are equal to or less than 9000, then it will be indexed in 1 to 3 minutes.
However if records are more than 9000, then servers perform bulk indexing at a lower priority, so
processing might take longer

Q:As a Developer, how can you optimize SQL query to fetch data from Salesforce Database?
---------------------------------------------------------------------------------------In salesforce datebase the Data of all tenants are store in common table,We only have option to create
SOQL which is optimized by custom inbuilt

Q:Explain functionality of Query Optimizer.

----------------------------------------------------The query optimizer:

- Determines the best index from which to drive the query, if possible, based on filters in the query
- Determines the best table to drive the query from if no good index is available

- Determines how to order the remaining tables to minimize cost

- Injects custom foreign key value tables as needed to create efficient join paths
- Influences the execution plan for the remaining joins, including sharing joins, to minimize database input/output (I/O)
- Updates statistics

Q:Explain term Data Skew in Salesforce.

----------------------------------------Scenario in which parent record has more than 10,000 of records or if any user owns more than
10,000 records is known as Data Skew. Salesforce does not recommend having more than 10,000
records own by any user or more than 10,000 Child for any parent.

Q:Explain about skinny table?

----------------------------- Salesforce creates skinny tables to contain frequently used fields and to avoid joins.
- For standard and custom fields salesforce maintains separate tables at the database levels.
- A skinny table contains both the standard and custom fields but it does not include soft deleted

Q:What are the considerations for Skinny Table?

----------------------------------------------- Skinny tables can contain a maximum of 100 columns.
- Skinny tables cannot contain fields from other objects.
- Skinny tables are not copied to sandbox organizations. To have production skinny tables activated in
- a sandbox organization, contact Customer Support.

Q: Sometimes while deleting record it gives error Object cannot be Deleted. What is the reason for
this kind of error ?
----------------------------------------------------------------------------------------------------This is generic error message prompted by Salesforce many times, which is not well informative. To
get informative message, we can try to delete same record in Developer Console. In Developer
Console Debug log, we will get exact error message.

Example :
Lets say there is one record which is parent of more than 2000 records and grand parent of 5000
records. In such scenario from developer console it gives error something like record cannot be
deleted because it has many associated objects However in User Interface, it will just display that
Object cannot be deleted.

Q: Can we mass delete reports using Apex (Anonymous Apex) ?

----------------------------------------------------------So best way is :

- Move all reports needs to delete in new folder.

- Inform everyone that reports will be deleted after some time may be 30 days.
- Import your reports folder in Eclipse including all reports to be deleted and then delete the the
eports folder in eclipse. It will delete all the reports at once.

Q:How we can use Datetime field as a criteria in SOQL Query ?

------------------------------------------------------------by using where condition like

FROM Account
WHERE CreatedDate > 2005-10-08T01:02:03Z

Q:What is difference between public and global class in Apex ?

-------------------------------------------------------------- Public class can be accessed within application or namespace.
- Global class visible everywhere , any application or namespace. WebService must be declared as
Global and which can be accessed inside Javascript also

Q:Explain few considerations for @Future annotation in Apex.

------------------------------------------------------------ Method must be static
- Cannot return anything ( Only Void )
- To test @future methods, you should use startTest and stopTest to make it synchromouse inside Test
- Parameter to @future method can only be primitive or collection of primitive data type.
- Cannot be used inside VF in Constructor, Set or Get methods.
- @future method cannot call other @future method.

Q:User Wants to set the starting day in Calendar as Monday instead of Sunday. How to get it
----------------------------------------------------------------------------------------------------Change the user language to English ( United Kingdom ) in Personal information or User record.

Q:Why CSS is not working in PDF created by Visualforce?

------------------------------------------------------Use apex:stylesheet tag to import external CSS file

Q:How to get Ip Address of User in Apex?

----------------------------------------String ipAddress = ApexPages.currentPage().getHeaders().get('X-Salesforce-SIP');

Q:How to get total number of Child records in Lookup relationship?

-----------------------------------------------------------------Write a Trigger on Child Object, which will update field in Parent record if child record is inserted,
deleted or undeleted.
Wrap Style tag inside Head tag in Visualforce

Q: In Master Detail Relationship :

OWD for Parent is public Read Only.
If User has Create, Edit Permission on Master as well as Detail Object.

While creating record for detail object he selects parent record which is not created by him. What will
happen in this case ?
------------------------------------------------------------------------------------------------------------------------------He will get an error, because in order to add child record user must have edit permission in parent
master record.

Q:Difference in Export and Export All in Data Loader in Salesforce?

----------------------------------------------------------------------Export : It is used to export the Salesforce Data(excluding recycle bins data) into your local system.

Export All : It is used to export the Salesforce Data(including recycle bins data) into your local

Q:What will happen if you try to update record in After Trigger Context?
------------------------------------------------------------------------We will get an error saying record is Read only

Q:System.debug() statements are included against script count?

-------------------------------------------------------------Any statement ending with semi-colon will be included against script count.

Q:Explain ActionPoller in Visualforce.

-------------------------------------apex:ActionPoller :
This is timer component which can send AJAX request on pre-defined interval. Minimum interval is 5
sec and default is 60 sec.

Q:In how many ways you can invoke Controllers / Controller Extensions method from VF?
------------------------------------------------------------------------------------Javascript Remoting, ActionFunction, ActionSupport, ActionPoller.

Q:What is the difference between apex:dataTable and apex:pageBlockTable components in

------------------------------------------------------------------------------------------------------- Both component is used to render data in tabular format.
dataTable will render records in simple HTML table format,
whereas the pageBlockTable possess default look

Q:User have all the permissions to see the Dashboard and Source Folder still when he wants to see
dashboard, its not visible. What might be the cause?
---------------------------------------------------------------------------------------------------------------------------------Salesforce User license for Dashbaord running user is different than User wants to access Dashboard
Example Running User license is Salesforce and user trying to access Dashboard is Salesforce

Q:How to convert carriage returns in Textarea to Line Breaks in Visualforce?

---------------------------------------------------------------------------We can use <apex:outputField> instead of <apex:outputText>. It will maintain formatting

Q:When loading data into date fields such as Opportunity Close Date using the Data Loader, the date
displayed in the application is sometimes one day earlier than the date in the file. What may be the
reason and solution ?

The reason for this is that fields such as Close Date are actually date/time fields. When a date is
loaded without specifying the time, the time is defaulted to 00:00 midnight.

simple solution for this is:

1.Specify a time as well as a date when loading dates using the Data Loader.

Q:Consider we have overall 90% code coverage however there is one class which have 0% code
coverage. Can we still able to deploy that class on production?
-----------------------------------------------------------------------------------------------------------------------------------Yes. Minimum 1% required for every trigger and there is no such restriction for Apex class.

Q: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?
-----------------------------------------------------------------------------------------------------------------------------------Even after deactivation of workflow, its action will be active in queue.

Q:We have Time Based Workflow and there is action scheduled to be executed. Can we delete that
---------------------------------------------------------------------------------------------------------If a workflow have any pending time dependent action, then we cannot delete the workflow.

Q:How to clear the Time based workflow action queue ?

-----------------------------------------------------Two ways to achieve this :

1. Make criteria false for all those records.
2. Navigate to Set up-->Monitoring-->Time Based Workflow, search for scheduled actions and
remove from queue.

Q:While creating workflow on Task, what difference observed on available actions?

--------------------------------------------------------------------------------Send Email action is not available while creating workflow on task.

Q:In trigger, lets say we have system.debug() statement after adderror() method. Will system.debug()
be statement executed in Trigger after adderror() method?
-----------------------------------------------------------------------------------------------------------------------------------adderror() method is not error statement rather its normal execution flow and all the statements
written after adderror() will be executed normally.

Q:What is dynamic binding in salesforce?

----------------------------------------Visualforce Dynamic Binding lets you write generic Visualforce pages to display information about
records without necessarily knowing which fields to show.

Q:Consider total 90k records present in Salesforce and you have used the count() method of soql.
What will be output of it?

--------------------------------------------------------------------------------------------------------------------------It will throw an error something like Too many query rows: 50001?, as the record limit in SOQL is

Q:In salesforce which fields are indexed automatically?

------------------------------------------------------The following fields are indexed by default:

- primary keys (Id, Name and Owner fields),

- foreign keys (lookup or master-detail relationship fields),
- audit dates (such as LastModifiedDate),
- Custom fields marked as External ID or Unique.

Q: Give any scenario when you cannot change the currency field type to numeric type.
-----------------------------------------------------------------------------------When the field is used either in Apex class or trigger.

Q:Explain difference in COUNT() and COUNT(fieldname) in SOQL.

------COUNT() must be the only element in the SELECT list.
You can use COUNT() with a LIMIT clause.

You cant use COUNT() with an ORDER BY clause. Use COUNT(fieldName) instead.
You cant use COUNT() with a GROUP BY clause ,Use COUNT(fieldName) instead.

---------------You can use COUNT(fieldName) with an ORDER BY clause.
You can use COUNT(fieldName) with a GROUP BY clause for API version 19.0 and later.

Q:How to write the Where clause in SOQL when GroupBy is used for aggregate functions?
---------------------------------------------------------------------------------------We cannot use the Where clause with GroupBy for aggregate functions like SUM() instead we will
need to use the Having Clause.

Example : Get all the opportunity where more than one record exists with same name and name
contains ABC.

Q:what is migration tool?

------------------------Migration tool is used to deploy the Metadata from one organization to other organization.
It is very easy process to deploy the large number of components from source to target(destination)

Q:How you can provide the User Login (Authentication) in Public sites created by Salesforce.
------------------------------------------------------------------------------------------We can provide the authentication on public sites using Customer Portal.

Q:How to upload bulk documents?

-------------------------------------------By using the document tab we can upload.

Q:How many files we can upload using data loader?

-----------------------------------------------------------------Upto 5 millon

Q:What is schema builder?

--------------------------------Schema Builder is used for viewing and modifying all the objects and relationships in our app,

We can view our existing schema and interactively add new custom objects, custom fields, and
relationships, simply by dragging and dropping.

Q:What is SOAP API?

----------------------------Use SOAP API to create, retrieve, update or delete records, such as accounts, leads, and custom
objects and also it allows SOAP API also allows us to maintain passwords, perform searches, and
much more.

Q:what is REST API?

--------------------------We can use REST API for integration and development and also it is an excellent choice of
technology for use with mobile applications and Web projects

Q:What is Bulk API?


Bulk API is based on REST principles and is optimized for loading or deleting large sets of data.
We can use it to query, insert, update, upsert, or delete a large number of records

Q:When trigger will fire?

------------------------------Whenever the dml operations happened.

Q:How you write test classes? What are the keywords you used in test classes?
--------------------------------------------------------------------------------------------------To define an Apex method as a 'test method', simply define the method as static and add the keyword
'testMethod'. A test method can be defined in any Apex class. A test method can not be defined in an
trigger .

Q:What is remote action?

---------------------------------The RemoteAction annotation provides support for Apex methods used in Visualforce to be called via
JavaScript. This process is often referred to as JavaScript remoting.