Monday 15 April 2013

Dataloader :-

Dataloader use for integration ( Insert,Upsert,Delete and Export ) data from external machine ( file should be an CSV ).

7 ways( function buttons ) :-

Insert :- Inserting data from external machine
Update :- Updating existing record
Upsert :- Insert and update record
Delete :- Deleting data ( recoverable )
Hard delete :- Deleting ( not recoverable )
Export : Taking out the data from our Salesforce.com
Export all :- All data extraction

Governor limits in Salesforce:-

Gov limits are run-time limits which is enforced at the time of Apex runtime.
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:

1)Memory
2)Database resources
3)Number of script statements to avoid infinite loops
4)Number of records being processed

Thursday 11 October 2012

What is MVC Architecture of Salesforce?


Ans:-
This will be a very high level introduction to salesforce and its capabilities . In my opinion, the reason for salesforce to become so popular in a short duration of time is the fact that it is a cloud based application. The puts salesforce at a huge advantage over other extremely successful CRM tools like Siebel. The trend seems to be catching up and it is in someways alarming to see the pace at with Salesforce is capturing the CRM market. Being a Multitenant application, Salesforce is able to integrate new features directly into the customers application without asking for the customer to upgrade or install anything. No doubt there are a lots of issues that Salesforce still needs to address. Many of my colleagues have come across many bugs with Salesforce and furthermore it is evident that being a shared application, there a limitations in the flexibility that Salesforce can provide as compared to other legacy applications like Siebel. This is one of the main reasons why many companies are reluctant to make a switch to Salesforce. Security and the cost of the applications are other reasons. There have been instances of phishing attack on salesforce customers and also it is quite well known that swithing to salesforce could be heavy on the pocket for a small or medium size enterprise. All said and done it is an extremely promising technology and I wouldn't think twice about investing my time learning it. Plus I find the interface very user friendly and they are always coming up with new enhancements. My favorite aspect about Salesforce is the fact that it is documented really well ( perhaps because it is so new) and also the ideas and discussion boards are great with really talented developers and moderators. I would bet on salesforce to be the next big change in the CRM world atleast for the next few years.

What is the difference between a isBLANK and an isNULL?

Ans:-
Both same thing. The problem is that salesforce made isNULL but it could not check if a blank text field is null. So it used for work for most data types but not strings. So they invented IsBLANK that is capable of checking if string is empty or not. Remember however that even a space or colon is considered as not empty. Anyway in future it is always recommended that we use isBlank.

What is the difference between a cross object formula and a roll up summary?


Ans:-
There are many but the main one ofcourse if that a cross object formula references fields of its parent records to perform various operation and return a result where as a roll up summary calulates the Count, sum,max, min of some fields in the child records. Also , a roll up summary is not actually calculated and stored in the database. It is calculated only at run time. Were as a formula is calculated and stored like any other field. There are a some more but these are the cream of the cake .

Thursday 6 September 2012

Test Class?



What is Test Class?
Ans:-
 To facilitate the development of robust, error-free code, Apex supports the creation and execution of unit tests.

Unit tests are class methods that verify whether a particular piece of code is working properly.

Unit test methods take no arguments, commit no data to the database, send no emails, and are flagged with the testMethod keyword in the method definition.

Test methods cannot be used to test Web service callouts. Web service callouts are asynchronous, while unit tests are synchronous.

Batch Class?


What is Batch Class?
Ans:-
 A developer can now employ batch Apex to build complex, long-running processes on the Force.com platform. For example, a developer could build an archiving solution that runs on a nightly basis, looking for records past a certain date and adding them to an archive. Or a developer could build a data cleansing operation that goes through all As ccounts and Opportunities on a nightly basis and reassigns them if necessary, based on custom criteria.
Batch Apex is exposed as an interface that must be implemented by the developer. Batch jobs can be programmatically invoked at runtime using Apex.
1. Start method-
global (Database.QueryLocator | Iterable<sObject>) start(Database.BatchableContext bc) {}

2. Execute method:
global void execute(Database.BatchableContext BC, list<P>){}

3. Finish method
global void finish(Database.BatchableContext BC){}