Header Ads Widget

sfdc interview differences part3

17. Differences between the Import Wizard and the Apex Data Loader
Salesforce CRM provides two tools for data migration—the Import Wizard and the Apex Data Loader.
The Import Wizard 
is designed for less-technical users and smaller, simple imports of up to 50,000 records. It takes you through the process step by step and displays error messages to alert you to potential record duplications ("dupes"). For more information, go to Help & Training | Importing Data | Using the Import Wizards.
Use the Apex Data Loader 
for complex imports of any size. It's for technical users only. You'll need access to the API to use this tool, which is included with Enterprise and Unlimited Edition. If you have another edition, you can purchase the API separately by contacting your account executive. The Data Loader doesn't display error messages to alert you to potential problems. However, this tool includes several features that help make large data imports easier, such as being able to save your mappings. For more information, go to Help & Training | Data Loader.
The table below summarizes the difference between the two tools. The instructions in the remaining steps refer to the Import Wizard.



18. Difference In Between Apex PageMessage, PageMessages and Message VF Pages Tags in Salesforce?
Most of the times on submission of page errors will be there and for showing those error messages different message tags are there in Visualforce Page Reference guide and first time they all are gave a feel that they all are same but some minor differences are there among them and those differences are as given below:-
Apex:PageMessages
apex:PageMessages is a containing component where any messages that have been added to the page will appear.
Apex:PageMessage
apex:pageMessage is a component that adds a single message to the page.
Apex:Message
apex:message allows you to associate a message with a component.
Notes
ApexPages.Messageis the class that is used to model a message.  A message isn't associated with a page until it is added via the ApexPages class.
ApexPages is a class that allows you to access the current page (through pexPages.CurrentPage()) and manage messages for the current page.
As Shown below messages can be of Error type and Custom Type and generally Apex:PageMessages tag comes in use for showing all  the messages.

19. What is difference between WhoId and WhatId in the Data Model of Task ?
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

21. Difference between Profile, OWD or a Sharing Rule?
Profile: Profile is used for object level access. It is used to provide CRUD(Create, Read, Update and Delete) permission.
OWD: OWD is used for record level access for all the users across Organization. It is used to provide Public Read Only, Public Read/Write, Private, Public Read/Write/Transfer (Lead and Case Objects alone).
Sharing Rule: Sharing Rules is used to extend Role Hierarchy.

20. Difference between trigger.new and trigger.old in Salesforce?

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.

21. difference of ActionFunction and ActionSupport and ActionPoller?
Actionfunctionused to call the server side method using javascript
Actionsupport used to call the server based on the client side event i.e. like onclick ,onchange..etc
ActionPolleris a timer that sends an AJAX update request to the server according to a time interval that you specify.

22.Diff between Profile and permission sets?
Profile:
1. Profile is a collection of permissions and settings associated with user or group of users.
2. User can have only one profile.
3. profile is mandatory while creating user.
Permission Sets:
1. Permission sets is a collection of settings and permissions that give users access to various tools and functions.
2. The settings and permissions in permissions sets are also found in profiles,but permission sets extend users functional access without changing their profiles.
3. Users can have only one profile, but can have multiple permissions sets.

23. What is the difference between database.insert and insert ?
insert is the DML statement which is same as databse.insert. However, database.insert gives more flexibility like rollback, default assignment rules etc. we can achieve the database.insert behavior in insert by using the method setOptions(Database.DMLOptions)

Important Difference:
·         If we use the DML statement (insert), then in bulk operation if error occurs, the execution will stop and Apex code throws an error which can be handled in try catch block.
·         If DML database methods (Database.insert) used, then if error occurs the remaining records will be inserted / updated means partial DML operation will be done.
24. Difference in “Export” and “Export All” in Data Loader in Salesforce?
Export: It is used to export the Salesforce Data(excluding recycle bin’s data) into your local system.
Export All:  It is used to export the Salesforce Data(including recycle bin’s data) into your local system.

25. What is the difference between the global and public access modifier keywords?
 We have different access modifiers like global, private, public.If we use the access modifier as Global, it can be used anywhere in the org. Generally, Global is used for web-services since one class needs to handle some other parts of apex in the org.Whenever we use Public keyword, then the access is limited to the particular class and cannot be used outside the related class.

26. What is difference between Static Resources V/S Documents?
Static Resources v/s Documents:
1.      Static resources are data cached and you can refer them easily in VF (including zip files) which store on Sales force server.
2.      Static Resources and Documents are having an absolute limit of 5MB for each document.
3.      You can package a collection of related files into a directory hierarchy and upload that hierarchy as a .zip or .jar archive), images, style sheets, JavaScript, and other files.
4.      You can reference a static resource by name in page markup by using the $Resource global variable instead of hard-coding document IDs.
5.      JavaScript or CSS is preferable to including the markup inline. Managing this kind of content using static resources allows you to have a consistent look and feel for all your pages and shared set of JavaScript functionality.
Referencing a Static Resource in Visualforce Page:
<apex:image url="{!$Resource.TestImage}" width="50" height="50" />
or
<apex:includeScript value="{!$Resource.MyJavascriptFile}"/>

27. Difference between SOAP and Restful Webservice
* REST and SOAP are the two web service frameworks available on the Force.com platform.
* The SOAP API uses authentication with username and password, and communicates using XML messages. There are different API's to work with the Enterprise, Partner, Bulk, Metadata etc.
*The REST API uses HTTP to authenticate, it uses a token authentication and can use OATH to authenticate, it communicates using JSON messages.
*REST API is generally lighter weight than the SOAP API, works well with mobile applications especially.




Post a Comment

0 Comments