coding the salesforce1 platform with apex
DESCRIPTION
TRANSCRIPT
![Page 1: Coding the Salesforce1 Platform with Apex](https://reader033.vdocuments.net/reader033/viewer/2022061218/54b715d04a7959af718b45cb/html5/thumbnails/1.jpg)
Coding the Salesforce1 Platform with ApexMay 22, 2014
![Page 2: Coding the Salesforce1 Platform with Apex](https://reader033.vdocuments.net/reader033/viewer/2022061218/54b715d04a7959af718b45cb/html5/thumbnails/2.jpg)
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](https://reader033.vdocuments.net/reader033/viewer/2022061218/54b715d04a7959af718b45cb/html5/thumbnails/3.jpg)
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](https://reader033.vdocuments.net/reader033/viewer/2022061218/54b715d04a7959af718b45cb/html5/thumbnails/4.jpg)
You’re Never Alone in the Cloud
The Salesforce1 Platform is a Multi-Tenant Environment
![Page 5: Coding the Salesforce1 Platform with Apex](https://reader033.vdocuments.net/reader033/viewer/2022061218/54b715d04a7959af718b45cb/html5/thumbnails/5.jpg)
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](https://reader033.vdocuments.net/reader033/viewer/2022061218/54b715d04a7959af718b45cb/html5/thumbnails/6.jpg)
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](https://reader033.vdocuments.net/reader033/viewer/2022061218/54b715d04a7959af718b45cb/html5/thumbnails/7.jpg)
Example Trigger
![Page 8: Coding the Salesforce1 Platform with Apex](https://reader033.vdocuments.net/reader033/viewer/2022061218/54b715d04a7959af718b45cb/html5/thumbnails/8.jpg)
Example Test Class
![Page 9: Coding the Salesforce1 Platform with Apex](https://reader033.vdocuments.net/reader033/viewer/2022061218/54b715d04a7959af718b45cb/html5/thumbnails/9.jpg)
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](https://reader033.vdocuments.net/reader033/viewer/2022061218/54b715d04a7959af718b45cb/html5/thumbnails/10.jpg)
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