1. What is Apex ?
Ans: It is the in-house technology of salesforce.com which is similar to Java programming with object oriented concepts and to write our own custom logic.
2. What is S-Control ?
Ans: S-Controls are the predominant salesforce.com widgets which are completely based on Javascript. These are hosted by salesforce but executed at client side. S-Controls are superseded by Visualforce now.
3. What is a Visualforce Page ?
Ans: Visualforce is the new markup language from salesforce, by using which, We can render the standard styles of salesforce. We can still use HTML here in Visualforce. Each visualforce tag always begins with “apex” namespace. All the design part can be acomplished by using Visualforce Markup Language and the business logic can be written in custom controllers associated with the Page.
4. Will Visual force still supports the merge fields usage like S-control ?
Ans: Yes. Just like S-Controls, Visualforce Pages support embedded merge fields, like the {!$User.FirstName} used in the example.
5. Where to write Visualforce code ?
Ans: You can write the code basically in 3 ways.
setup->App Setup->Develop->Pages and create new Visulaforce page.
Setup -> My Personal Information -> Personal Information -> Edit check the checkbox development mode. When you run the page like this, https://ap1.salesforce.com/apex/MyTestPage. you will find the Page editor at the bottom of the page. You can write you page as well as the controller class associated with it, there it self.
Using EclipseIDE you can create the Visulaforce page and write the code.
6.What are Apex Governor Limits?
Ans: 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 to ensure that code does not monopolize shared resources. Types of limits that Apex enforces are resources like memory, database resources, number of script statements to avoid infinite loops, and number of records being processed. If code exceeds a limit, the associated governor issues a runtime exception.
7. What is Roll up summary field in Salesforce?
Ans:Roll up summary field in salesforce calculates the Count, Sum, Min or Max of particular field of any child record. Thus, we can say that Roll up summary field can only be created on Master object.
8.How many types of the relationship fields available in Salesforce?
Ans :
Master Detail
Many to Many
Lookup
Hierarchical
self relationship
9. What will happen if the Account is deleted?
Ans: If the Account is deleted then Contact, Opportunity will also be deleted from Salesforce which are related to that Account.
10.What are the types of email templates available in salesforce.com?
Ans:
Text
HTML with Letter Head
Custom HTML
Visual force
11.If one object in Salesforce have 2 triggers which runs “before insert”. Is there any way to control the sequence of execution of these triggers?
Ans : Salesforce.com has documented that trigger sequence cannot be predefined. As a best practice create one trigger per object and use comment blocks to separate different logic blocks. By having all logic in one trigger you may also be able to optimize on your SOQL queries.
12.Do governor limits apply to sandbox instances?
Ans : Governor limits do apply to all Salesforce instances (trial, developer, production or sandbox environments). However code coverage and successful execution of test classes is only enforced when deploying to a production environment.
13.How to delete the users data from Salesforce?
Ans : To delete the Users Data go to Setup | Administration Setup | Data Management | Mass Delete Record, from there select the objects like Account, Lead etc and in criteria select the users name and delete all records of that user related to particular object
14. How to restrict the user to see any record, lets say opportunity?
Ans : set up opportunity sharing to be private. If both users are admins or have view all records on opportunity, then that overrides private sharing
15. What is the difference between trigger.new and trigger.old in Apex – SFDC?
Ans :
Trigger.new :
Returns a list of the new versions of the sObject records.
Note that this sObject list is only available in insert and update triggers, and the records can only be modified in before triggers.
Trigger.old :
Returns a list of the old versions of the sObject records.
Note that this sObject list is only available in update and delete triggers.
16. How you can provide the User Login (Authentication) in Public sites created by Salesforce.
Ans:
We can provide the authentication on public sites using “Customer Portal”.
17.Where is the option of the report for the “Custom Object with related object” and what are the condition to generate related reports?
Ans :
If the parent object is the standard object provided by the salesforce like “Account”, “Contact” then the report will be in there section with related custom object.
If both objects are the custom then the report will be in “Other Reports” Sections.
Following are the conditions to get the report of related objects:
On both the objects, Reports option must be enable.
The relationship between both of them must be “Master – detail relationship”.
18: How is Role Different from the Profile?
Ans:- Roles and Profiles are two different concepts in Salesforce.com, Some of the basic differences are:
Profile helps to put restrictions on the Object where as the Role helps in opening the records to the users above the Role hierarchy
Profile manages the Salesforce.com License, Tabs Settings, Record types, Page layouts, General Settings, Administrator Settings etc; Role hierarchy does not do any of these things
Profile is Mandatory, Role is not
19:- What are the different ways of making a field mandatory?
Ans: 3 ways of making the field mandatory are:-
Page Layout:- Field can be made mandatory from the page layout when it needs to be made mandatory for a set of users
Field Level Security:- Field can be made mandatory from the FLS when it needs to be made mandatory for all the users in the Organization and even from the API’s
Validation Rule:- Field can be made mandatory from the Validation Rule when it needs to be made mandatory for user who is using the same Page layout used by other users
Salesforce.com recommends using the Page Layput option for making the field mandatory.
20:- What are the Different Ways in which leads can be created in salesforce.com?
Ans:- Some of the ways in which leads can be generated and created in salesforce.com are
Walk In to a company: User comes to the company office and then Salesforce.com rep manually creates the Lead
Data Base bought by the company and then leads loaded via Data Loader/Import Wizard in salesforce.com
Leads created because of the Campaigns, Seminars, and Tradeshows
Web to Lead:Users registering on the website of the company. CLICK HERE to see a web to Lead page in action.
Email to Lead & SMS to Lead can be custom build for the Organization
21:- When are the Record types used?
Ans:- Record Types are used in the following two cases
To assign the different Page layouts to different users based on their profiles
To enable different sets of Standard/Custom Picklist values for two different users using the same page layout
22:- What is the difference between Customer Portal and Partner Portal?
Ans: Customer Portal is for the support of your customers (includes Cases etc but not Opportunities) and Partner Portal is for your Partners so that you can effectively manage your channels sales (contains Opportunities and only top Partner licence has Cases).
23:- When are Workflows used in salesforce.com? Give one example where you will use a trigger instead of a workflow?
Ans: Workflow is the automation of the following types of actions based on your organization's processes:
* Tasks - Assign a new task to a user, role, or record owner.
* Email Alerts - Send an email to one or more recipients you specify.
* Field Updates - Update the value of a field on a record.
* Outbound Messages - Send a secure configurable API message (in XML format) to a designated listener.
When there is complex business flow, which you can't achive by workflow rule you can write trigger,
In trigger you can use SOQL query, you can also call other apex class, lots of more stuffs.
You can also perform before delete/after insert,update,delete operations in the trigger
24:- Dashboards can not be created on which kind of Reports?
Ans: Yes, Dashboard can be created for all the three types of reports (Summary, Matrix and Tabular).
But tabular report has some limitations.
We can create dashboard for tabular report if the report has row limit and dashboard setting specified.
Note: Gauge and Metric Dashboards components will not support Tabular reports.
25. Why Use Triggers?
Ans: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