using apex for rest integration
TRANSCRIPT
![Page 1: Using Apex for REST Integration](https://reader035.vdocuments.mx/reader035/viewer/2022062412/5871992c1a28ab044e8b54fb/html5/thumbnails/1.jpg)
March 15th, 2016Using Apex for REST Integration
![Page 2: Using Apex for REST Integration](https://reader035.vdocuments.mx/reader035/viewer/2022062412/5871992c1a28ab044e8b54fb/html5/thumbnails/2.jpg)
Joshua BirkDeveloper EvangelistSalesforce.com@joshbirk
Ami AssayagChief ArchitectCRM Science@amiassayag
Speakers
Kirk SteffkeAppExchange Practice LeadCRM Science@kirkevonphilly
![Page 3: Using Apex for REST Integration](https://reader035.vdocuments.mx/reader035/viewer/2022062412/5871992c1a28ab044e8b54fb/html5/thumbnails/3.jpg)
Forward-Looking StatementStatement 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 product or service availability, 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, new products and services, 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 outcome of any litigation, risks associated with completed and any possible mergers and acquisitions, 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, our limited history reselling non-salesforce.com products, 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 for the most recent fiscal year and in our quarterly report on Form 10-Q for the most recent fiscal quarter. These documents and others containing important disclosures 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 presentations, 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.
![Page 4: Using Apex for REST Integration](https://reader035.vdocuments.mx/reader035/viewer/2022062412/5871992c1a28ab044e8b54fb/html5/thumbnails/4.jpg)
Go Social!
Salesforce Developers
Salesforce Developers
Salesforce Developers
The video will be posted to YouTube & thewebinar recap page (same URL as registration).
This webinar is being recorded!
@salesforcedevs / #forcewebinar
![Page 5: Using Apex for REST Integration](https://reader035.vdocuments.mx/reader035/viewer/2022062412/5871992c1a28ab044e8b54fb/html5/thumbnails/5.jpg)
▪ Don’t wait until the end to ask your question! – Technical support will answer questions starting now.
▪ Respect Q&A etiquette– Please don’t repeat questions. The support team is
working their way down the queue.▪ Stick around for live Q&A at the end
– Speakers will tackle more questions at the end, time-allowing.
▪ Head to Developer Forums– More questions? Visit
developer.salesforce.com/forums
Have Questions?
![Page 6: Using Apex for REST Integration](https://reader035.vdocuments.mx/reader035/viewer/2022062412/5871992c1a28ab044e8b54fb/html5/thumbnails/6.jpg)
Agenda
1. Introduction to REST API’s2. How to handle outbound calls to services3. How to handle inbound requests with Apex4. How to test Apex in these cases
![Page 7: Using Apex for REST Integration](https://reader035.vdocuments.mx/reader035/viewer/2022062412/5871992c1a28ab044e8b54fb/html5/thumbnails/7.jpg)
Suite of interfaces for a wide variety of use cases
REST Meta
Salesforce API’s
SOAP
Chatter, Analytics, Tooling BulkStreaming
![Page 8: Using Apex for REST Integration](https://reader035.vdocuments.mx/reader035/viewer/2022062412/5871992c1a28ab044e8b54fb/html5/thumbnails/8.jpg)
MobileApplication
SalesforcePlatform
login.salesforce.com
1. Authenticate
/services/data/query?q=SELECT+Id,+Name+FROM+Account
2. Access API
{ “Id” : “001E0000002Jv2bIAC”, “Name” : “GenePoint”}
3. Get JSON or XML
REST API’s
![Page 9: Using Apex for REST Integration](https://reader035.vdocuments.mx/reader035/viewer/2022062412/5871992c1a28ab044e8b54fb/html5/thumbnails/9.jpg)
How can I callout to third partyendpoints?
![Page 10: Using Apex for REST Integration](https://reader035.vdocuments.mx/reader035/viewer/2022062412/5871992c1a28ab044e8b54fb/html5/thumbnails/10.jpg)
Apex features for REST callouts
HTTP Request/Response Objects
Asynchronous Scope
Scheduled tasks
JSON Serialization / Deserialization
![Page 11: Using Apex for REST Integration](https://reader035.vdocuments.mx/reader035/viewer/2022062412/5871992c1a28ab044e8b54fb/html5/thumbnails/11.jpg)
Demo: Outbound Calls with Apex
![Page 12: Using Apex for REST Integration](https://reader035.vdocuments.mx/reader035/viewer/2022062412/5871992c1a28ab044e8b54fb/html5/thumbnails/12.jpg)
How can I extend Salesforce REST with Apex?
![Page 13: Using Apex for REST Integration](https://reader035.vdocuments.mx/reader035/viewer/2022062412/5871992c1a28ab044e8b54fb/html5/thumbnails/13.jpg)
Apex features for inbound requests
RESTful and Web service annotations can extend standard API’s
RESTful operations can be handled per HTTP method
System level JSON serialization and deserialization
![Page 14: Using Apex for REST Integration](https://reader035.vdocuments.mx/reader035/viewer/2022062412/5871992c1a28ab044e8b54fb/html5/thumbnails/14.jpg)
Demo: Custom Apex REST Endpoint
![Page 15: Using Apex for REST Integration](https://reader035.vdocuments.mx/reader035/viewer/2022062412/5871992c1a28ab044e8b54fb/html5/thumbnails/15.jpg)
How do I test all of this stuff?
![Page 16: Using Apex for REST Integration](https://reader035.vdocuments.mx/reader035/viewer/2022062412/5871992c1a28ab044e8b54fb/html5/thumbnails/16.jpg)
![Page 17: Using Apex for REST Integration](https://reader035.vdocuments.mx/reader035/viewer/2022062412/5871992c1a28ab044e8b54fb/html5/thumbnails/17.jpg)
New York CityJune 16-18, 2015
Join us in the Developer ZoneSalesforce World Tour
Register here: http://sfdc.co/XXXX
![Page 18: Using Apex for REST Integration](https://reader035.vdocuments.mx/reader035/viewer/2022062412/5871992c1a28ab044e8b54fb/html5/thumbnails/18.jpg)
SurveyYour feedback is crucial to the successof our webinar programs. Thank you!
http://bit.ly/javascriptVF
![Page 19: Using Apex for REST Integration](https://reader035.vdocuments.mx/reader035/viewer/2022062412/5871992c1a28ab044e8b54fb/html5/thumbnails/19.jpg)
Q & AShare Your Feedback: http://bit.ly/forcefriday
Meet us in NYC! http://sfdc.co/nyc2014
Try Trailhead: trailhead.salesforce.comJoin the conversation: @salesforcedevs
![Page 20: Using Apex for REST Integration](https://reader035.vdocuments.mx/reader035/viewer/2022062412/5871992c1a28ab044e8b54fb/html5/thumbnails/20.jpg)
Thank You