Basic introduction to Salesforce Apex
By
Cesar Murilo Ribeiro
Salesforce App Builder
The Salesforce Automation
Landscape
Declarative Tolls points and clicks admins
Coding tools Salesforce Gods
For Developers it is very important understand
the tools available and know when they should be applied.
Declarative tool set – Workflowrules, same object updates
Email notifications, limited applications.
Process Builder – Related object updates
Create a records, no unrelated objects
Bulk issues everywhere
Visual flow unrelated object updates variables and loops.
Same learning curve as code, but without the benefits.
The Salesforce Automation
Landscape
1- Introduction to Declarative tools
2 - Introduction to Programmatic tools
Apex triggers overview
- What is a Apex trigger
- Why we learn trigger first
- Trigger requirements
- Coding editor
The Salesforce Landscape
Power & Complexity
Apex
WFR - Workflow Rules
PB – Process Builder
Do not write code unless you have to.
Relational Data Base
contact – ID – Name – Account ID
Account – ID – Name – Industry
Fields = Colluns
Role table = Record
Apex triggers
Automation events
Insert event - When a Account is created a triggers is executed
Update event – executed when one or many fields on the record are
changed.
Deleted event- Triggers run the record are deleted, workflow do not delet
events.
Tests Classes = Sensors that make sure your code work.
Coding Editor
Salesforce Online Development Environments
Salesforce Setup, Quickest way to code
Developer Console – Features rich and downloads.
Force.com IDE – Most popular coding environment
MarvensMate – Speed Demon With a slick UI.
Apex triggers
Automation events
Insert event - When a Account is created a triggers is executed
Update event – executed when one or many fields on the record are
changed.
Deleted event- Triggers run the record are deleted, workflow do not delet
events.
Tests Classes = Sensors that make sure your code work.
Coding Editor
Salesforce Online Development Environments
Salesforce Setup, Quickest way to code
Developer Console – Features rich and downloads.
Force.com IDE – Most popular coding environment
MarvensMate – Speed Demon With a slick UI.

Apexbasic

  • 1.
    Basic introduction toSalesforce Apex By Cesar Murilo Ribeiro Salesforce App Builder
  • 2.
    The Salesforce Automation Landscape DeclarativeTolls points and clicks admins Coding tools Salesforce Gods For Developers it is very important understand the tools available and know when they should be applied. Declarative tool set – Workflowrules, same object updates Email notifications, limited applications. Process Builder – Related object updates Create a records, no unrelated objects Bulk issues everywhere Visual flow unrelated object updates variables and loops. Same learning curve as code, but without the benefits.
  • 3.
    The Salesforce Automation Landscape 1-Introduction to Declarative tools 2 - Introduction to Programmatic tools Apex triggers overview - What is a Apex trigger - Why we learn trigger first - Trigger requirements - Coding editor
  • 4.
    The Salesforce Landscape Power& Complexity Apex WFR - Workflow Rules PB – Process Builder Do not write code unless you have to. Relational Data Base contact – ID – Name – Account ID Account – ID – Name – Industry Fields = Colluns Role table = Record
  • 5.
    Apex triggers Automation events Insertevent - When a Account is created a triggers is executed Update event – executed when one or many fields on the record are changed. Deleted event- Triggers run the record are deleted, workflow do not delet events. Tests Classes = Sensors that make sure your code work. Coding Editor Salesforce Online Development Environments Salesforce Setup, Quickest way to code Developer Console – Features rich and downloads. Force.com IDE – Most popular coding environment MarvensMate – Speed Demon With a slick UI.
  • 6.
    Apex triggers Automation events Insertevent - When a Account is created a triggers is executed Update event – executed when one or many fields on the record are changed. Deleted event- Triggers run the record are deleted, workflow do not delet events. Tests Classes = Sensors that make sure your code work. Coding Editor Salesforce Online Development Environments Salesforce Setup, Quickest way to code Developer Console – Features rich and downloads. Force.com IDE – Most popular coding environment MarvensMate – Speed Demon With a slick UI.