Upload
salesforce-developers
View
3.412
Download
3
Tags:
Embed Size (px)
DESCRIPTION
Date: This webinar took place on July 24, 2012 Whether you are an experienced programmer or a salesforce.com administrator, Apex can help you get more out of the Force.com platform. Apex is the programming language of Force.com; it allows you to go beyond the point-and-click framework to add specialized and complex logic to your applications. Watch this webinar to learn about: :: How administrators with no programming knowledge can write simple Apex triggers to complete their applications :: How programmers can utilize Apex to build complete application logic :: How programmers can use Apex to integrate Force.com applications with other systems View the recording, FAQs, and download the code here: http://bit.ly/apexcodewiki
Citation preview
Follow us @forcedotcom
Introduction to Apex
Josh Kaplan
Senior Product Manager
@joshsfdc
Sandeep Bhanot
Senior Developer Evangelist
@cloudysan
Safe harbor statement under the Private Securities Litigation Reform Act of 1995: This presentation may
contain forward-looking statements that involve risks, uncertainties, and assumptions. If any such
uncertainties materialize or if any of the assumptions proves incorrect, the results of salesforce.com, inc.
could differ materially from the results expressed or implied by the forward-looking statements we make. All
statements other than statements of historical fact could be deemed forward-looking, including any
projections of subscriber growth, earnings, revenues, or other financial items and any statements regarding
strategies or plans of management for future operations, statements of belief, any statements concerning
new, planned, or upgraded services or technology developments and customer contracts or use of our
services.
The risks and uncertainties referred to above include – but are not limited to – risks associated with
developing and delivering new functionality for our service, our new business model, our past operating
losses, possible fluctuations in our operating results and rate of growth, interruptions or delays in our Web
hosting, breach of our security measures, the immature market in which we operate, our relatively limited
operating history, our ability to expand, retain, and motivate our employees and manage our growth, new
releases of our service and successful customer deployment, and utilization and selling to larger enterprise
customers. Further information on potential factors that could affect the financial results of salesforce.com,
inc. is included in our annual report on Form 10-K filed on April 30, 2008 and in other filings with the
Securities and Exchange Commission. These documents are available on the SEC Filings section of the
Investor Information section of our Web site.
Any unreleased services or features referenced in this or other press releases or public statements are not
currently available and may not be delivered on time or at all. Customers who purchase our services should
make the purchase decisions based upon features that are currently available. Salesforce.com, inc.
assumes no obligation and does not intend to update these forward-looking statements.
Safe Harbor
Follow us @forcedotcom
@forcedotcom / #forcewebinar
Developer Force Group
facebook.com/forcedotcom
Developer Force – Force.com
Community
youtube.com/developerforce
Follow us @forcedotcom
Apex is the Programming Language of the
Force.com Platform
2.4 Billion Lines of Apex Code
Follow us @forcedotcom
What Is Apex?
Object-oriented language
Strongly-typed
Java-like syntax
Follow us @forcedotcom
Why Apex?
Runs in the Cloud
Integrated to Your Data
Convenience Features
Testing Framework
Backward Compatibility
Write once, run anywhere
Follow us @forcedotcom
The Force.com Platform is a Multi-Tenant Environment
Follow us @forcedotcom
What can you do with Apex?
Visualforce Controllers
Inbound/Outbound
Email Services
Custom web services and
HTTP Callouts Database Triggers
Scheduled and Batched Tasks
Follow us @forcedotcom
Use Case: UberJet
Follow us @forcedotcom
Triggers – Add Logic To Your Application
Where the declarative platform ends, Apex begins
Apex Triggers act whenever records are saved
– Modify the object being saved
– Create new objects
– Modify related objects
– Modify any object in the system
Follow us @forcedotcom
Follow us @forcedotcom
Create Invoice Trigger
Follow us @forcedotcom
Reserve Jet Trigger
Follow us @forcedotcom
Testing Your Code
Follow us @forcedotcom
Testing Your Code
Follow us @forcedotcom
Apex and Visualforce
Custom UI Custom Apex
Controller
Follow us @forcedotcom
Asynchronous Processing
Follow us @forcedotcom
Apex Asynchronous Features
Scheduled Apex
Batch Apex
@future calls
Follow us @forcedotcom
Integration with Apex
Follow us @forcedotcom
Apex Integration Features
Expose RESTful Web Services
Expose SOAP Web Services
Outbound Web Service Calls
– Callout to RESTful Web Services
– Callout to SOAP Web Services
Follow us @forcedotcom
Deploying Your Code
Follow us @forcedotcom
Let’s recap
Apex is the programming language for the Force.com platform
– Used for database triggers, Visualforce pages, integration services, batch
and scheduled processing and more …
Common syntax
– Variables, loops, classes, interfaces, collections, etc.
Many unique convenience features
– Tight binding with your Salesforce data model
– Simple data manipulation calls
– SOQL for querying records into variables
– Annotations & keywords – webservice, @isTest, @RestResource, etc.
– Integrated testing framework with data teardown
Follow us @forcedotcom
Ready. Set. Go!
http://developer.force.com/join
FREE
Sign Up For Developer Edition
Follow us @forcedotcom
Your Homework Assignment
Download the Apex Workbook
http://bit.ly/apexworkbook
Bite-sized 30 minute tutorials
– Starts with the basics and builds
from there
– Build in Developer Edition Now!
Follow us @forcedotcom
Resources
Developer Edition – Free Sign-up
http://developer.force.com/join
Apex Workbook
http://bit.ly/apexworkbook
Apex Resource Page
http://wiki.developerforce.com/page/Apex
Discussion Boards
http://boards.developerforce.com/t5/Apex-Code-Development/bd-p/apex
Follow us @forcedotcom
Upcoming Events
August 1
Learn to Build Apps CodeTalk
http://bit.ly/introcodetalk
August 15
Elevate your Career as a Cloud Developer
http://bit.ly/cloudcareer-wr
August 23
Heroku Postgres Cloud Database
http://bit.ly/herokupostgres-ap
Follow us @forcedotcom
Q&A http://bit.ly/
apexcodesurvey
@joshsfdc @forcedotcom @cloudysan