Coding the Salesforce1
Platform with Apex
May 22, 2014
What is Apex?
 Programming language of the Salesforce1 Platform
– Java style syntax
– Object orientated
– Strongly typed
...
Why use Apex?
 Runs in the Cloud
 Automatically Integrated to Your Data
 In-Built Testing Framework
 Backwardly Compat...
You’re Never Alone in the Cloud
 The Salesforce1 Platform is a Multi-Tenant Environment
What Can You Do With Apex?
 Extend when configuration isn’t enough
 Visualforce controllers
 Database triggers
 Custom...
Example Use Case
 Keep the Contact address the same as the Account
 BUT
– Only in some circumstances
Example Trigger
Example Test Class
Quick Recap
 Apex is a really powerful tool
– Once we’ve tried “clicks” rather than code
– Is constrained by governor lim...
What Next?
 Try It!
 Sign up for a developer org
– developer.salesforce.com
 Follow the apex workbook
– Bit.ly/apexwork...
Upcoming SlideShare
Loading in …5
×

Coding the Salesforce1 Platform with Apex

541 views

Published on

Published in: Software, Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
541
On SlideShare
0
From Embeds
0
Number of Embeds
19
Actions
Shares
0
Downloads
7
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide
  • OOP - Encapsulation - Polymorphism - Inheritance
  • This is the good things about ApexRuns in cloud – everything is setup for you, lowers the barriers to entryIntegrated to Data – all data is there and ready for you to use, Apex understands the metadataTesting Framework – test coverage is needed, data setup framework in placeBackward Compatibility – you code is guaranteed to run against the same version of the API at all times, even as the language changes
  • Talk about shared resources and governor limits
  • Main point Config comes firstTalk about simplicity.EG Webservice is just an annotation
  • Coding the Salesforce1 Platform with Apex

    1. 1. Coding the Salesforce1 Platform with Apex May 22, 2014
    2. 2. What is Apex?  Programming language of the Salesforce1 Platform – Java style syntax – Object orientated – Strongly typed – Billions of lines
    3. 3. Why use Apex?  Runs in the Cloud  Automatically Integrated to Your Data  In-Built Testing Framework  Backwardly Compatibility
    4. 4. You’re Never Alone in the Cloud  The Salesforce1 Platform is a Multi-Tenant Environment
    5. 5. 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
    6. 6. Example Use Case  Keep the Contact address the same as the Account  BUT – Only in some circumstances
    7. 7. Example Trigger
    8. 8. Example Test Class
    9. 9. 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
    10. 10. 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

    ×