Monday, 21 October 2013

SalesForce Interview Questions

1.Can Salesforce generate an email alert when using task as the object to which the workflow rule applies?
A. Workflow automates email alerts, tasks, field updates and outbound messages based on the customer´s organization's processes. When using task as the object to which the workflow rule applies, email alert will not be an immediate and/or time-dependent actions to the workflow rule.
As an alternative method of sending emails when creating tasks, you can create a workflow rule to send an outbound message to a Web service. The Web service will send an email to the owner of the task. For example, you could create a workflow rule that sends a SOAP message whenever a task is created or edited and is in "Not Started" status. Currently, workflow on tasks do not allow you to send an email.

2.)what is View state and how reduce view sate in visual force page?

A.In Visualforce, page state is persisted as a hidden form field that is automatically inserted into a form when the page gets generated. We call this the view state of the page. The view state captures the state of the page -- state of its associated controllers and extensions and the component tree on the page. The view state is posted back along with the other form data, which gives the server enough information to recreate the page state to which new changes can be applied.

Declare variables as transient to reduce view state
An instance variable declared as transient is not saved and is not transmitted as part of the view state. If a certain field is needed only for the duration of the page request and does not need to be part of the view state, declare it as transient

3.)what is relationship between Account and Contact?

A. Account and contact behaves as master detail in business logics but on UI it is a lookup relationship. Let me explain you a bit more.

You can create a contact without filling account i.e it shows that there is a lookup relationship between account and contact.

If you have created a contact with account and you delete that account then contact will be deleted, this shows that it is in Master-Detail relationship. This is a standard behavior.

So we can say it in both ways, but it documentation it is a lookup relationship.

4.) what is Custom settings and how deploy it .any problem faced in production

A.related to custom settings .how u resilved that.?
When deploying a Custom Settings object, you should be able to also deploy the custom settings records. this should also be available when creating a managed package. When creating a package you should be able to include your default configuration settings.

5.)how to import records from Juction Objects.?

A. We cannot run import wizard over a Junction Object.

We can only run Analytical snapshot over it.

6.)hiden fields can we used in Formulae fields

7.)we can edit Rollup summary fields?


8.)which components cant deploy through the change sets.

A.you cannot rename or delete the components using changesets.

9.)how create adotional fields in task, event and acitivity objects?

A)By using Activity Custom Object we can create custom fields for Task,Event
And Activity.

10.) what is deploy to server and save to server?

Save to Server - Save the updated code to your development org (Dev Edition / Sandbox) from Eclipse IDE. There is no test methods run at this time.
Deploy to Server -  Deploying to code to any kind of instance. All the test methods execute in the background before you are deploy the code. The environment can be Dev Edition/Sandbox or your Production instance.

11.)we can rename apex class name in production?

12.)which is critical issue u faced and how u resolved that issue?

13.)Map Will acept duplicate values ?

eg i in map (1-a;2-b;3-c) key pair values if insert map(1-d) it will accept the value .which value will map will returns


14.) in list how to display in ASC or DESC  order of records without using any Methods like ASC or DEsc any SOQL statements.

15.)which versioning tools are using in project for vErsioning


16.) What isModifyAll And ModifyAllData.

 Ans : Modify All Data : Create, edit, and delete all organization data, regardless of sharing settings.
Modify All : Give All (Read, Create, Add, Delete) permission to selected Object.


17.)What is difference between WhoId and WhatId in the Data Model of Task ?

Ans: WhoID refers to people things. So that would be typically a Lead ID or a Contact ID
WhatID refers to object type things. That would typically be an Account ID or an Opportunity ID

17.)what is batch proceesing?

19.hwo to maintain user liecense in SFDC?

ou may have more than one type of user license in your organization. A user license entitles a user to different functionality within Salesforce and determines which profiles and permission sets are available to the user.
To view a list of the active user licenses in your company, click Your Name | Setup | Company Profile | Company Information. This page lists the following for each type of user license:
§  Status indicates the status of the license.
§  Total Licenses indicates the number of licenses for which your company is billed and that are available to you.
§  Used Licenses is the number of licenses that you have assigned to users.
§  Remaining Licenses is the number of unused licenses.
If Checkout is enabled for your organization, you can click Buy More Licenses to go to Checkout to buy additional user licenses.
In addition to license types, the following portal login information is listed for organizations that have Customer Portals or partner portals enabled:
§  Monthly Logins Allotted shows the maximum number of customer or partner portal logins allowed per month.
§  Monthly Logins Used indicates the number of successful logins for all users associated with a customer or partner portal user license for the month.
No
20.) WE can use SOQL in Test class


21)we can use SOSL In Triggers and Apex Class.

Ans: SOSL CAN NOT BE CALLED FROM TRIGGERS.
22.)salescloud and SErvie cloud Life cycle.


23.)how to  used recordtype in VF Pages?

By using
24.) how deploy user object  and fields?

 by using change sets,ide
25.)we can create relationships with other Obects like Masete detail and lookup relations with other objects.


26.)what is Action Fucntion and action support  in AJax methods

Ans :
apex:actionFunction :A component that provides support for invoking controller action methods directly from JavaScript code using an AJAX
request. An <apex:actionFunction> component must be a child of an <apex:form> component

action support:
A component that adds AJAX support to another component, allowing the component to be refreshed asynchronously by the
server when a particular event occurs, such as a button click or mouseover

27.)What is differce bet ween Remote Access and Actionfuctions


28.)We can use PageReference in Action Functions?


29.)Comapare to SOQL AND SOSL which one gives Quick Response means less time to take retrive records


30.)Diffenc ebetween SOQL AND SOSL?

31.)How to deploy Profile?
We can use CHANGE Sets to deploy the profile 


32.)how to display error massages in in visaul force pages?


33.)we can write validation rules in Formuale fields


34.)what is cross objects and where we used crossobject formuale fields


35.) we can use TeXT Search in SOQL?


36.)what is Locked Locking where we used recordlocking and how to unlock that


37.) One object(LEAD) have public read ANd write Permission for one profile .10 Users are using same profile .
 now i wanna set 5 of that users that particular object on public READ . How can i achieve this.





No comments:

Post a Comment