1. For which criteria in workflow "time
dependent workflow action" cannot be created?
Ans: created, and every time it’s edited
2. What is the advantage of using custom
settings?
Ans :
You dont have to query in apex (fire select query) to retrieve the data stored
in custom settings.
3. What are the different workflow actions
available in workflows?
Ans: 1. Field update 2. Email alert 3. send Outbound
messages 4. Create new task
4. What is whoid and whatid in activities?
Ans: Whoid
is the id of either contact or Lead. Whatid is the id of the related to record
in activity record(standard or custom object)
5. What is the difference between a standard
controller and custom controller
Ans: standard controller inherits all the standard object
properties, standard button functionalities can be directly used. Custom
controller defines custom functionalities, a standard controller can be
extended to develop custom functionalities using keyword
"extenssions"
6. Can you have more than one extenssions
associated with a single page?
Ans :
Yes we can have more than extenssions.
7. If page is having multiple extenssions and
if two extenssions have methods of same name. Then which method
out of these two will be called upon calling from vf page ?
Ans: The one which is present in the controller defined on the left side
will be called.
8. What are governer limits ?
Ans:
Governer limits are the limits imposed by salesforce so as to avoid monopoly by
orgs in using salesforce shared resources.
9. how can we implement pagination in
visualforce ?
Ans: use standardset controllers for implementing pagination.
10. What is the difference between force.com and
salesforce.com
Ans: force.com is paas(platform as a service) and salesforce.com is
Saas(software as a service)
11. What is a externalid in salesforce
Ans: It is a field which can be used to store a
value that is used as a refernce for that record in other system. For example
if you have a record in system 'xyz' where it is referenced by some value then
that value can be used as external id in salesforce for that
record. External id can be used for upsert operation in data loader
12. What happens upon lead conversion ?
Ans: When lead is converted a contact, account and optionally an
opportunity is created.
13. What are different ways of deployment in
salesforce ?
Ans: Change sets, eclipse and ANT
14. How can you override a list button with a
visuaflorce page?
Ans: Visualforce page should be a list controller that is it should have
"recordsetVar" attribute defined in page tag.
15. Is it possible to bypass Grant Access
Using Hierarchies in case of standard objects ?
Ans : No. This is default and cannot be changed.
How can you call a controller method from java
script ?
Ans: Use action function component to call controller method from java script.
17. How can you call a visualforce page from a
controller method?
Ans: Use pagereference object for calling a visualforce page from controller
method
18. How can you sort a select SOQl query ?
Ans: use order by clause in select query for sorting a list of records
19. How much code coverage is needed for
deployment?
Ans : Each trigger should have minimum of 1%. Class can have 0%. But, the total
code covergae of 75%.
20. Can 'set' store duplicate values in it?
Ans : No. Set only stores unique values. List can have duplicate values in it.
21. Can two users have same profiles?
Ans: Yes
22. How can you refresh a particular section
of a visualforce page?
Ans: This can be done using reRender attribute
23. How can you create a many to many
relationship in salesforce
Ans: This can be done by creating junction object between the two objects.
24. What happens to detail record when a
master record is deleted?
Ans: detail record gets deleted.
25. What happens to child record when a parent
record is deleted(look up relationship)?
Ans. Child record remains undeleted
26. How to get current logged in users id in apex
?
Ans: Use Userinfo.getuserid() to get the current logged in user's id in apex.
27. How to convert a csv file browsed in
visualforce page into a string.
Ans: use csvfilecontents.tostring(). method to convert blob to string
28.How many records can a select query return ?
Ans : As of now it can return upto 50000 records.
29. How many records can a sosl query return ?
Ans: as of now it can return upto 2000 records
30. How to fire dynamic query in soql?
Ans: Using database.query
Example: List<account> accList =
Database.query('select name from account');
What is a bucket field in reports?
Ans: This field is used for custom grouping of values in a field. This can be
used in summarising the report.
32. What are dynamic dashboards ?
Ans: Dashboards which run for logged in user are dynamic dashboards
33. Can the dynamic dashboards be scheduled?
Ans: No they cannot be scheduled.
34.How can you use custom label; in visualforc
page?
Ans: Use this syntex for accessing custom albel in visualforce page -
{!$Label.Samplelabel}
35.What are the types of custom settings in
salesforce?
Ans: List type and Heirarchy type
36.What are the different types of collections in
apex?
Ans: There are three types of collections in apex language
1. Set
2. List
3. Map
37. What are maps in apex?
Ans: Map has keys and values. A key points to a single value. Map can be used
to store realationship between two entities. Keys in map are unique. Values can
be duplicated.
38. What are the different types of object
relations in salesforce ?
Ans: 1. One to many
2. Many to many
3. Master detail
39.Can you have roll up summary fields in case
of parent child relationship?
Ans: No. These are present only in case of master details relationship.
40. Can you see a lead which is converted in
saleforce UI?
Ans: The detail record is not seen. But a page, wherein it shows the links for
formed account, contact and opportunity.
41. What is the difference between action
function and action support ?
Ans: Action functions can call controller method from java script, action
support adds support to other components.
42. What is action poller in visualforce ?
Ans: Action poller sends AJAX request with a specified time interval.
43. What are the different types of reports
available in salesforce?
Ans: 1. tabular report
2. Summary Report
3. Matrix Report
4. Joined Report
44. How many active assignments rule can you have
in lead/Case?
Ans: You can have only one active assignment rule at a time
45. How do we access static resource in
visualforce?
Ans: Use this syntex for accessing static resource
{!$Resource.Testresourcename}
46. How to embed a visaulflow in a visualforce
page ?
Ans: Use this syntex to embed flow in vf page : <flow:interview />
47. How to enable inline editing in visauflorce
page ?
Ans You can enable inline editing in visualforce page by using
<apex:inlineEditSupport> component.
48. What is trigger.new in trigger ?
Ans: trigger.new is a list of records that are in the context of trigger or
becuase of these records(modification,Creation, deletion) the trigger has been
called
49. How do we bulkify the trigger ?
Ans: Bulkfification requires iterating over all the records in trigger context
for example : for(account ac: trigger.new){
// your logic
here
}
50.How can we get the old value in trigger ?
Ans: use trigger.old map for getting previous values of fields.