27
Follow us @forcedotcom Introduction to Apex Josh Kaplan Senior Product Manager @joshsfdc Sandeep Bhanot Senior Developer Evangelist @cloudysan

Intro to Apex Code webinar

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

Page 1: Intro to Apex Code webinar

Follow us @forcedotcom

Introduction to Apex

Josh Kaplan

Senior Product Manager

@joshsfdc

Sandeep Bhanot

Senior Developer Evangelist

@cloudysan

Page 2: Intro to Apex Code webinar

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

Page 3: Intro to Apex Code webinar

Follow us @forcedotcom

@forcedotcom / #forcewebinar

Developer Force Group

facebook.com/forcedotcom

Developer Force – Force.com

Community

youtube.com/developerforce

Page 4: Intro to Apex Code webinar

Follow us @forcedotcom

Apex is the Programming Language of the

Force.com Platform

2.4 Billion Lines of Apex Code

Page 5: Intro to Apex Code webinar

Follow us @forcedotcom

What Is Apex?

Object-oriented language

Strongly-typed

Java-like syntax

Page 6: Intro to Apex Code webinar

Follow us @forcedotcom

Why Apex?

Runs in the Cloud

Integrated to Your Data

Convenience Features

Testing Framework

Backward Compatibility

Write once, run anywhere

Page 7: Intro to Apex Code webinar

Follow us @forcedotcom

The Force.com Platform is a Multi-Tenant Environment

Page 8: Intro to Apex Code webinar

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

Page 9: Intro to Apex Code webinar

Follow us @forcedotcom

Use Case: UberJet

Page 10: Intro to Apex Code webinar

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

Page 11: Intro to Apex Code webinar

Follow us @forcedotcom

Page 12: Intro to Apex Code webinar

Follow us @forcedotcom

Create Invoice Trigger

Page 13: Intro to Apex Code webinar

Follow us @forcedotcom

Reserve Jet Trigger

Page 14: Intro to Apex Code webinar

Follow us @forcedotcom

Testing Your Code

Page 15: Intro to Apex Code webinar

Follow us @forcedotcom

Testing Your Code

Page 16: Intro to Apex Code webinar

Follow us @forcedotcom

Apex and Visualforce

Custom UI Custom Apex

Controller

Page 17: Intro to Apex Code webinar

Follow us @forcedotcom

Asynchronous Processing

Page 18: Intro to Apex Code webinar

Follow us @forcedotcom

Apex Asynchronous Features

Scheduled Apex

Batch Apex

@future calls

Page 19: Intro to Apex Code webinar

Follow us @forcedotcom

Integration with Apex

Page 20: Intro to Apex Code webinar

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

Page 21: Intro to Apex Code webinar

Follow us @forcedotcom

Deploying Your Code

Page 22: Intro to Apex Code webinar

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

Page 23: Intro to Apex Code webinar

Follow us @forcedotcom

Ready. Set. Go!

http://developer.force.com/join

FREE

Sign Up For Developer Edition

Page 24: Intro to Apex Code webinar

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!

Page 26: Intro to Apex Code webinar

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

Page 27: Intro to Apex Code webinar

Follow us @forcedotcom

Q&A http://bit.ly/

apexcodesurvey

@joshsfdc @forcedotcom @cloudysan