Welcome to the free Tutorials of Salesforce CRM. The intent of these tutorials is to provide in depth understanding of Salesforce CRM.
For More Details follow below link:
http://bit.ly/1BnsSqf
2. Customization in cloud:
* With Force.com developers can customize declaratively or programmatically.
· Declarative Customizations can be made point and click in a browser.
· Programmatic customizations are made with code.
*Declarative customizations require an understanding of Force.com concepts, without coding
Knowledge.
*Programmatic Customizations require coding skills and allow developers to extend beyond
the declarative Salesforce.com Capabilities.
4. Data Types
In Apex all variables and expressions have a data type they are two
types of data types
1. Primitive Data types
2. Sobject Types
1. Primitive Data types
A primitive data types such as an Integer, Double, Long, Date, Date
Time, String, ID, or Boolean.
2. Sobject Types:
An Sobject, can be a generic SObject or be a specific SObjects, such as
an Account, Contact, or MYcustom__c.
5. Introduction to Apex
Force.com Apex code is a strongly typed programming language that
executes on the Force.com platform. Apex is used to add business
logic to applications, to write data base type triggers, and to program
controllers in the user interface layer.
It has a tight integration with the data base and query language, good
web service support, and includes features such as futures and
governors for execution in a multitenant environment.
- Integrated with DML, Inline, SOQL and SOSL and holds the ability to do
bulk processing.
- Data focused.
- Hosted by the Force.com platform and knows multitenancy.
6. Order of Execution:
When we save a record with an insert update, or upsert statement salesforce performs
the events in order because when the event happens, Order of Execution is very
important because they are multiple things tield to a single event and when the event
gets fired we need to know which processes is running first and which processes is
running last.
The order of execution is in the following order.
1. Executes all before triggers.
2. System validations are performed.
3. Custom validations are performed.
4. Saves the record but does not commit
5. Executes all after triggers.
6. Executes assignment rules
7. Executes auto response rules
8. Executes workflow rules
7. Annotations:
An apex annotation modifies the way a method or class is used similar
to annotations in Java
· Annotations are defined with an initial @ symbol, followed by the
appropriate keyword.
· To add an annotation to a method, specify it immediately before the
method or class definition.
EX:-
Public class classname @ future
Public static void methodname (String Name)
· Apex supports the following annotations
1. @ Deprecated
2. @ Future
3. @ Is test
4. @ Read-only
5. @ Remote action