Transcript
Page 1: Coding the Salesforce1 Platform with Apex

Coding the Salesforce1 Platform with ApexMay 22, 2014

Page 2: Coding the Salesforce1 Platform with Apex

What is Apex?

Programming language of the Salesforce1 Platform– Java style syntax

– Object orientated

– Strongly typed

– Billions of lines

Page 3: Coding the Salesforce1 Platform with Apex

Why use Apex?

Runs in the Cloud

Automatically Integrated to Your Data

In-Built Testing Framework

Backwardly Compatibility

Page 4: Coding the Salesforce1 Platform with Apex

You’re Never Alone in the Cloud

The Salesforce1 Platform is a Multi-Tenant Environment

Page 5: Coding the Salesforce1 Platform with Apex

What Can You Do With Apex?

Extend when configuration isn’t enough

Visualforce controllers

Database triggers

Custom web services

Email Services

Scheduled and batched tasks

Page 6: Coding the Salesforce1 Platform with Apex

Example Use Case

Keep the Contact address the same as the Account

BUT– Only in some circumstances

Page 7: Coding the Salesforce1 Platform with Apex

Example Trigger

Page 8: Coding the Salesforce1 Platform with Apex

Example Test Class

Page 9: Coding the Salesforce1 Platform with Apex

Quick Recap

Apex is a really powerful tool– Once we’ve tried “clicks” rather than code

– Is constrained by governor limits

Common programming paradigms– Object orientated

– Strongly typed

– Loops, Collections, Conditions

– Data Model awareness

Page 10: Coding the Salesforce1 Platform with Apex

What Next?

Try It!

Sign up for a developer org– developer.salesforce.com

Follow the apex workbook– Bit.ly/apexworkbook

Get help– developer.salesforce.com/forums