Thursday, July 19, 2012

Iterating Map using for loop in Apex Class


You can user keyset() method to iterate over keys in map to fetch values
Apex Class:
Map<String,String> fieldList = new Map<String,String>{‘Name__c’=>’Name’, ‘Age__C’=>’Age’};
for (String fieldName : fieldList.keySet()){
system.debug(fieldName);
}

Salesforce DEV401 Exam Questions

1) What’s Process Visualizer
2) How to deal with Multiple Currency request
3) How does a Wire less user Approves a record (select 2)
Via email, via voice, via email, SF mobile
4) Features available for custom object (select 2)
Queues, Assignment rule, sharing rule, field history
5) Which std profile should have View encrypted data permission?
6) Not a component of force.com
Custom tab, data ware house, Custom Obj, default landing page
7) Which all instance have d same record id
a. No instance have d same record id
b. PROD and sandbox
c. Prod, DEV sandbox and Full copy sandbox only
d. Prod and Full copy SandBOx only
8) The requirement was to create a Radio button(RB) application in SF. Where a person must be able to rate an application with values 1-5 and these values must be Radio button.
What or how must a developer create it
a) Select a datatype of Radio button
b) Create a formula field and display as RB in PageLayout
c) Create a picklist and display value as a RB
d) Use the help from VF page
9) A controller represents which layer? (Model, View or control)
10) Object B have a look up to OBj A and C have a LOOk up to Obj B, how can we get the values of A and C in a report.
a) Create a report type A with B with C
b) Create a Report type ( A and B) with C
c) Report type A with C
d) Create a report type A and B and C
11) Match d following
a. DEV  Tools and Environments
b. UI  Appearance
c. Data Base  Object
d. Logic  task , assignment rule
12) How is tagging enabled? And something related to it.
13) How does an analytical Snapshot fail? (Select 2)
a. Not on target object
b. Report changes
c. Report not created by admin
d. Becoz of Apex trigger
e. User inactive
14) What all fields can be made in to External ID? Ans:- text, number, email
15) Default options available for Obj tab in a application
a. New side bar customize
b. Sidebar search
c. Reporting
d. Recent items
e. Quick create
16) What dashboard component used to view d Total? Select all..
a. Gauge
b. Chart
c. Scontrol/Visualforce
d. Table
17) How many Custom tabs? Ans:- VF, Web and Custom
18) A requirement in which we need to compare Company Name and Company ID? The lone answer which came to me was VlookUp in Validation rule.
19) Question on Junction Object
20) Scenario is like… An a corresponding parent record need to be locked once the record is approved and we cannot add or delete the associated child record.
Ans:- workflow for field update and then the Validation rule using roll up summary field.
21) What all can be done in a Page lauout?
a. Required
b. Change picklist value
c. Dependency
d. Readonly
22) Question on Cross object formula. If 2 Obj say A and B have a look up relationship, A is Parent and B is child, while creating a cross obj formula which all object fields can we access? All parent object’s flds
23) Various case of application of approval process.
24) Scenario… by changing a stage a particular field in the Page layout must become visible?
a. formula field
b. VF
c. workflow and Record change + new PL
d. validation rule
25) To find a grouping of date what type of report must be used
26) Which component of dashboard can be used for forecasting?
27) Question on conditional highlighting in reports
28) If an approval process id modified, how will we track d changes made in it and by the execution of approval process.
a. Last modified field in Approval process
b. Audit trail
c. Debug Log
d. Field history of the effected field
29) Time Trigger and its Storage Queue.
30) X and Y are two users. Both can view a particular Data, Of which Y should not see or report on a field called Email.
How can a developer accomplish dis?
a. Validation rule
b. Separate Page layout for both
c. Separate Profile
d. FLS
31) How many master detail relationships are possible per object.(ans 2)
32) What are the processes do not support in dataloader.(select 3)
a. Update and insert for the same record at a time.
b. Using JDBC connection.
c. Scheduling
d. Some other option
33) Suppose a developer is in analysis phase and he is asked to start the development, but there are no clarity on the visibility side and user side report side. What are the possible operations he can do so that he can continue the development without altering the current design?
a. Setting up validation rules.
b. Setting up sharing rules.
c. Setting up data model
d. Setting up dashboard
34) There are some 3-4 questions on visibility ..OWD and sharing model.
OWD is most restrictive.
35) What are the data types supported by Formula field
a. Currency,text,email,date date time.
36) If running user is inactive, is it possible to view the current data by using a dashboard(Ans :No).
37) Analytical snapshot is possible only through which types of reports?
38) A record is visible to all if status equals open, for other status’s it should be visible to only to a selected users. How this can be achieved?
39) A cross table with
a. UI development-View
b. Create object-Model
c. Tabs-View
d. Apex:- Business logic
40) X has a look up to Y, Z has a look up to X, so How the custom report type can build this relationship.
a. Y->X->Z
b. X->Z->Y
c. Z->X->Y
41) Questions on Approval process.
42) When a record is submitted for approval, locking can be applied by
a. Automatically it will apply
b. On approval action
c. On rejection action
d. On initial submission action

Salesforce ADM201 Exam Question and Answers


1) where can you export the record in excel format
Ans :- in export report option or in print view
2) Type of headers for email
Ans:- HTML,visual force,text
3) custom fiscal year report
Ans :- custom fiscal forecasting
4)when to enable Territory management
Ans :- custom fiscal forecasting
5)when you enable Advance Currency Management what we happen
Ans :- current base rate will be set
6)what are standard object (choose 3)
7)if time zone is changed by sys admin , will it affect the user time zone
Ans:- it won’t affect the timezone of the user
8)primary object report used for which report
Ans:- to select the report type
9)who can import leads and add it to campaign
Ans:- marketing user
10)for finding grand total which dashboard is used
Ans:- Gauge and metric
11)if a user refresh a dashboard what will happen
Ans:- it will refresh the user who refresh the dashboard
12)which is control and dependent field
Ans:- Custom picklist
13)Installing app exchange application admin can do ?
Ans:-security , first hands on
14)custom object relationship are (choose two)
Ans:-master detail and lookup
15)what will happen if a user login time period is over
Ans:- user is logged out and data is lost
16)In managed package what can be done
Ans:- Up gradation
17)can we refer custom summary formula field to another summary formula field-level
Ans:-NO
18)In user record which field is not available without using custom field
Ans:- Hire
19)Difference between workflow and approval process
Ans:- criteria and time dependent is workflow , record submit for approval is approval process
20)what are business process object
Ans:- case ,lead,opportunities, solutions
21)what are the things available in company profile? (choose 2)
Ans:-language , timezone , locale , license
22)what needs to be selected to view user opportunities and other user opportunities
Ans:- my team opportunities for hierarchy , view all data for viewing all user dashboards
23)Information available on user record
Ans:- user license , storage, email ( default sales and a/c team is not the available in the record)
24)what can be transferred in the account EXCEPT
Ans:-closed activities
25)what is required for custom tab in application
Ans:- select custom object and style
26)what can be used to create email templates
Ans:- HTML,Text,Visualforce
27)what can be stored in folder
Ans:- email template,reports and dashboards,documents
28)if a user is login in with salesforce UI , what is checked in by salesforce
Ans:-login hours , trusted ip and ip restricted
29)Recent tags can be viewed using
Ans:- Side bar widget
30)Changing default locale will affect?
Ans:-user default locale with override org default
31)Presentation assembly is used for ?
Ans:- searching for and previewing slides, then easily assembling them in whatever sequence you choose using a simple drag-and drop assembly tool.
32)what object details can be viewed in mini console view
Ans:-contact , account , cases
33)If there is a error in web-to-lead , the error message is sent to
Ans:-error will be notified to customer
34)which is workflow task and not workflow alert ?
Ans:-
35)if a approver leave the organization then the system admin can perform (choose 2)
Ans: mass transfer approve , change approval process
36)Report has to email to the user what should admin do
Ans: running user and frequency schedule
37)when case is deleted which item are also deleted
Ans:- events,comments
38)what is external id
Ans:- it is a external application field id
39)public group must be used to do all the following EXCEPT
Ans:-
40)what will a user be able to do with a record that has manually shared with read/write access
Ans:- edit
41)What are the opportunity defaults when converting a lead to an opportunity?
Ans:-Stage Defaults to first option in the picklist, close date defaults to the last
42)Manufacture ford, GM and model alitis,s500
Ans:-controller pick-list manufacture , dependent pick-list model
43)When can u enable Territory management
Ans:- Enable custom forecasting
44)how can u upload 65,000 account record
Ans:-Data Loader
45)formula field to select the current year
Ans:-my_date__c<>Year(today)
46)if a user refresh a dashboard it will affect
Ans: It will affect that particular user alone
47)what is affected when u change locale(choose two)
Ans:-Date format , number format,
48)what are the custom object relationship
Ans:-lookup and master detail
49)when upload the data in the org what will happen to storage
Ans: storage space will be immediately updated
50)recycle bin is not full and you delete a data how long the data will be there in recycle
Ans:- 30 Days
51)if a record submitted for approval and is locked who can edit that record
Ans:- Administrator and Approver
52)under user record which fields can be modified by the user
Ans:- email,sales team,accounts team

Salesforce processes any rules in the following order

1. Validation rules
2. Assignment rules
3. Auto-response rules
4. Workflow rules (with immediate actions)

Workflow actions


  • Email Alerts
  • Tasks
  • Field Updates
  • Outbound Messages

Salesforce Interview Questions

1) What are the workflow actions?
2) Explain about your roles and profile?
3) What is <apex:define>, <apex:actionFunction>, <apex:actionRegion> tags?
4) Explain analytical snapshot?
5) When can we use workflow and when can we use trigger?
6) What is SOQL and SOSL?
7) What is the governor limits in SOQL and SOSL?
8) What is the return type of SOSL?
9) Explain about dashboard?
10) Explain about future method and governor limits of future method?
11) What is StandardController and What is CustomController and when will you go for CustomController?
12) If one client is newly starting with salesforce then what all are the things you will consider and what edtion you will suggest?
13) Explain about different Sandboxes?
14) What kind of environment you will follow if we need to deploy or release changes to production every month?
15) What all are the reports type we can create in salesforce?
16) What is the difference between Summary report and Matrix report?
17) What is the difference between Import Wizard, Dataloader and Dataloader CLI?

Salesforce Interview Questions

1)Major difference between before trigger and after trigger, in which scenario we need to use these?
2)how to control recursion operation of trigger? (Ex: writing update inside of after trigger)
3)Order of ececution of validation , workflow rules?
4)If method overrided in custom controller and used in VF page as extension then which method will call?
5)How to get a count of million records from object?
6)Maximum how many extensions can use in VF page?
7)Tasks are storing in which object?
8)Explain about batch apex?
9)Best practise for writing triggers
10)Explain some of the features about spring 12?

Salesforce Interview Questions


  1. What are the types of sandbox available in salesforce?
  2. How to map custom lead fields for account,contact or opportunity  while Lead conversion?
  3. What is the difference between Action Function and Action Support in visualforce?
  4. What are the different types for relationship in salesforce?