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.





Salesforce Interview Questions


1.What is the difference between map and set in  Salesforce  collections?.
Map:A map is a collection of key-value pairs where each unique key maps to a single value. Keys can be any primitive data type, while values can be a primitive, sObject, collection type or an Apex object. For example, the following table represents a map of countries and currencies:
Country (Key) 'United States' 'Japan'  'France'            'England'         'India'
Currency (Value)        'Dollar' 'Yen'    'Euro'   'Pound'            'Rupee'
Similar to lists, map values can contain any collection, and can be nested within one another. For example, you can have a map of Integers to maps, which, in turn, map Strings to lists. A map can only contain up to five levels of nested collections inside it.
Set:A set is an unordered collection of primitives or sObjects that do not contain any duplicate elements. For example, the following table represents a set of String, that uses city names:
'San Francisco'            'New York'      'Paris'   'Tokyo' To declare a set, use the Set keyword followed by the primitive data type name within <> characters. For example:
 2. Why Use Triggers?  
 Triggers are used to perform immediate actions based on previous action e.g. field update. An apex language is used to write triggers
Eg: Account merges
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_triggers.htm
3. What are different types of Triggers?
 There are two types of triggers
a) Before trigger- is used before database operation
 b) After trigger-is used  to access field values that are set by the database (such as a record's Id or lastUpdated field), and to affect changes in other records, such as logging into an audit table or firing asynchronous events with a queue.
4. Why Use Visual Force?
 Visual force is a Sales force UI markup language using visual force we can construct   WebPages. In Sales force MVC architecture Visual force represents View.
5. How do you handle errors?
 Error handing is done directly displaying in Visual force page using Apex Pages methods   to end users or displaying in debug logs.
http://www.salesforce.com/us/developer/docs/pages/Content/apex_methods_system_apexpages.htm?SearchType=Stem
6. What is a Component?
In sales force component is a reusable piece of code developed using Visual force and Apex controller.
7.Tell me about a project with Salesforce in which you led the architecture that was not explicitly limited to the Salesforce infrastructure.
8.How long ago did you work on the above mentioned project?
9.Tell me about inner-department communications and your approach to communicating with non-technical team members.
10.What measures have you taken to make your software products more easily maintainable?
11.What development processes have you used in your recent projects? Were any tools used to support these processes? If so can you name some of the advantages and short comings of the tool/ tools?
12.What is an junction object?.
13.What is the difference between master detail relationship and look up relationship. ?
https://login.salesforce.com/help/doc/en/overview_of_custom_object_relationships.htm
14.How will you handle 10001 SOQL  problem in apex?
15. Define force.com and Salesforce.com?
16.Explain some examples  for work-flow rules?
17.What is the use of  future method?
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_annotation_future.htm
18.What is abstract class?.
19.Explain object oriented concepts in sales force how will you implement this?
20.How will you import and export data between two systems eg: SFDC and SQL?
21.What is appexchange?
22.Explain about cloud?.
23.Explain about validation rules in salesforce?.
24.What is the difference between roles and profiles?.
25.What is the difference between record level ,field level, object level security?
26.How will you use web services in sales force.com?.
27.Can you explain about limitation why this limitation placed in sales force.
28.what is view state in sales force?.It there is any limitation after winter11?
29.What is the difference between Role and Profile?
30.How you handle part of page refresh using VF?
31.How you can define a trigger is executed successfully?
32.Explain about yours current project?
33.How do you rate yours self in apex,VF?
34.How you can  deal with project dead lines?
35.How you can use external WSDL files in Sales force?
36.What is difference between rest full and soap API?
37.What is yours Strong point Sales force?
38.How you can with SQL injections in Sales force?
39.Can you explain test methods in salesforce?
41.Can you explain relationships in salesforce?
42.What are SOQL limitations?
43.How can bypass SOQL statement to fetch more 1000 records?
44.What job did you like more in your carrier?
45.Can you explain a scenario integrating login method to third party application.
46.Can you explain about SFDC controllers?
47.Can you explain about sales process?
48.What is a set in salesforce deployments?
49.How many ways you can invoke an work flow?

50.What are governor limits can you explain about it?