the power of salesforce apis world tour edition

36
The Power of Salesforce APIs World Tour Developer Talk [email protected] @pchittum Peter Chittum Director, Developer Evangelism

Upload: peter-chittum

Post on 11-Jan-2017

157 views

Category:

Technology


1 download

TRANSCRIPT

The Power of Salesforce APIs

World Tour Developer Talk

[email protected]@pchittum

Peter Chittum Director, Developer Evangelism

Forward-Looking StatementsStatement 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.

Intro and OverviewIntegration DependenciesData and CRUD APIsSalesforce ConnectApex Integration ServicesRoundup of Other Integration Topics

Who Are You?Experience with integration and use of APIsNew(ish) to Salesforce

Intro and Overview

What Makes a Platform…

…a Platform?

APIs

Comprehensive APIs, Toolkits, and Support of Standards

Web ServiceEndpoint

Web ServiceEndpoint

ApexWS/REST

Outbound Messaging

Business Logic

Bulk APIOdata

(Salesforce Connect)

Streaming API Topic/Channel

CRUD(SOAP/REST)

Data

Extnernal Object

BayeuxClient

Applications, Devices, Middleware

Java SDK Ruby gem PHP Toolkit Mobile SDK 3rd Party Adapters

ApexCallouts

Versioned (v38.0 currently)3 Major Releases per YearStandard Architectural PatternsAutomatic API Generation

Salesforce API Implementation

WorkbenchCLI ToolsPostmancURL

Tools for working with the API

Integration Dependencies

Identity and AuthorizationSecuritySOQL/SOSLAPEXDeclarative Customization

It helps to know a few things about the platform.

Identity:User, Profile, License

Authorization:Typically OAuth

User ProfileSharing Model

Security

Broker__cName Phone__c Email__c Title__c

Caroline King +1-612-554-8532

[email protected] Territory Manager

Alistair Krei +1-415-467-8890

[email protected] Real Estate Agent

Rajesh Hamal +1-213-355-2241

[email protected]

Property Broker

Wei Tong +1-206-888-4320

[email protected] Real Estate Agent

Profile (Configuration)

Sharing(Dynamic)

EntityField

Row

Query and Search

//SOQL – Salesforce Object Query LanguageSELECT Id, Name, Title__c, Beds__c Broker__r.Name FROM Property__c WHERE Beds__c >= 3

//SOSL - Salesforce Object Search LanguageFIND {GU19*} RETURNING Account, Property__c

//Parameterized Search API/parameterizedSearch?q=bungalow&in=ALL&sobject=Property__c

Apex CodeDeclarative Logic

Customization

Data and CRUD APIs

ClientsApplications and Services

Rest API

SOAP API

API EndpointsAutomatically created with new entities/objects

Account

Property__c

/SObjects/Account/SObjects/Account/describe/query?q=SELECT+Name,Type+FROM+Account...

/SObjects/Property__c/SObjects/Property__c/describe/query?q=SELECT+Name,Type__c+FROM+Property__c...

DEMO: Rest API

Salesforce Connect

OData 2.0/4.0 or Custom Apex External data as Salesforce entitySync schema from system of recordNo data duplicationData mastered at system of record

Salesforce Connect

ArchitectureSimple Integration

Demo: Salesforce Connect

Apex Integration Services

Apex CalloutSalesforce request to external system

HttpRequest req = new HttpRequest();

req.setEndpoint(url); req.setMethod(method); req.setBody(body);

Http http = new Http(); HttpResponse resp = http.send(req);

1 2 3 4 5 6 78

Apex Rest EndpointCustom API in Salesforce

@RestResource(urlMapping='/propertyhub/*')global class PropertiesService {

@HttpGet global static List<Property__c> getNearbyProperties(){ List<Property__c> retProps = new List<Property__c>(); RestRequest req = RestContext.request; RestResponse resp = RestContext.response; ... return retProps; }

1 2 3 4 5 6 7 8 9 10 11 12

Demo: Slack Integration Using Apex

Roundup of Other Integration Topics

Streaming APIPub/sub API to push events using long pollingCan be replayed for 24 hours

Lightning OutSalesforce UI in any web container

Questions?

Thank Y u