38
Best API Features 2016 An homage to progress [email protected] m @pchittum Peter Chittum Director, Developer Evangelism, EMEA

Best api features of 2016

Embed Size (px)

Citation preview

Page 1: Best api features of 2016

Best API Features 2016

An homage to progress

[email protected]@pchittum

Peter Chittum Director, Developer Evangelism,

EMEA

Page 2: Best api features of 2016

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.

Page 3: Best api features of 2016

Peter Chittum

Director, Developer Evangelism, EMEA

@pchittum

Page 4: Best api features of 2016

Best?

Page 5: Best api features of 2016

“To improve is to change; to be perfect is to change often.”- Winston Churchill

Page 6: Best api features of 2016
Page 7: Best api features of 2016

“The only way to make sense out of change is to plunge into it, move with it, and join the dance.”- Alan Watts

Page 8: Best api features of 2016

v34.0/compositeStreaming APIv36.0/parameterizedSearch

Page 9: Best api features of 2016

REST API

Page 10: Best api features of 2016
Page 11: Best api features of 2016
Page 12: Best api features of 2016

POST/v38.0/composite/tree/{sobject}

Page 13: Best api features of 2016

{ "records": [{ "attributes": {"type": "Broker__c", "referenceId": "b1"}, "name": "Alistair Krei", "Properties__r": { "records": [{ "attributes": { "type": "Property__c", "referenceId": "p1" }, "Address__c": "1 Bagshot Park" }, { ...more child records }]} }, { ...more parent records...}]}

/v38.0/composite/tree/Broker__cInsert Record Hierarchy

123456789

1011121314151617

Page 14: Best api features of 2016

POST/v38.0/composite

Page 15: Best api features of 2016

{ "compositeRequest" : [ { "method" : "POST", "url" : "/services/data/v38.0/sobjects/Account", "referenceId" : "AccountRecord", "body" : {"name" : "Composite Account"} }, { "method" : "GET", "url":"/services/data/v38.0/sobjects/Account/@{AccountRecord.id}", "referenceId" : "NewAccount" } ]}

Group arbitrary REST requestsPass results to later requests

123456789

101112131415

Page 16: Best api features of 2016

Demo

Page 17: Best api features of 2016

v34.0/compositeStreaming APIv36.0/parameterizedSearch

Page 18: Best api features of 2016

Push APIAvoid REST/SOAP API PollingLong Polling

What is the Streaming API?

Page 19: Best api features of 2016

PushTopic: Data Changes

StreamingChannel: Generic Notification

Page 20: Best api features of 2016

PushTopic pt = new PushTopic();

pt.Name = 'InvoiceStatementUpdates';pt.Query = 'SELECT Id, Name, Status__c, Description__c

FROM Invoice_Statement__c';pt.ApiVersion = '38.0';pt.NotifyForOperationUpdate = 'true'; pt.NotifyForFields = 'Select';

insert pt;

Configure Push Topic

123456789

1011

Page 21: Best api features of 2016

Register as Streaming Client

Subscribe to Topic/Channel

Update or Event Occurs

Page 22: Best api features of 2016

Loss of Client Connection

Page 23: Best api features of 2016

Message + replayId

Subscribe replayFrom: n, -2, -1

Resume

Page 24: Best api features of 2016

Demobit.ly/df-durable

Page 25: Best api features of 2016

v34.0/compositeStreaming APIv36.0/parameterizedSearch

Page 26: Best api features of 2016

Query v Search

Page 27: Best api features of 2016

Shout if you love SOSL

Page 28: Best api features of 2016

/search?q=

FIND {bungalow} IN ALL FIELDS RETURNING Property__c

Page 29: Best api features of 2016

Shout if you love encoding long strings

Page 30: Best api features of 2016

FIND {bungalow} IN ALL FIELDS RETURNING Property__c

Page 31: Best api features of 2016

q=bungalowin=ALLsobject=Property__c

Page 32: Best api features of 2016

GET/parameterizedSearch?q=bungalow&in=ALL&sobject=Property__c

Page 33: Best api features of 2016

POST/parameterizedSearch{ "q" : "bungalow", "in" : "ALL", "sobject" : "Property__c"}

Page 34: Best api features of 2016

Demo

Page 35: Best api features of 2016

“Just when I think I have learned the way to live, life changes.”- Hugh Prather

Page 36: Best api features of 2016

Questions?Don't forget the survey

Page 37: Best api features of 2016
Page 38: Best api features of 2016

Thank Y u