Best API Features 2016
An homage to progress
pchittum@salesforce.com
@pchittum
Peter Chittum
Director, Developer Evangelism, EMEA
Forward-Looking Statements
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 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.
Peter Chittum
Director, Developer Evangelism, EMEA
@pchittum
Best?
“To improve is to change; to be perfect is to change
often.”
- Winston Churchill
“The only way to make sense out of change is to plunge
into it, move with it, and join the dance.”
- Alan Watts
v34.0/composite
Streaming API
v36.0/parameterizedSearch
REST API
POST
/v38.0/composite/tree/{sobject}
{
"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__c
Insert Record Hierarchy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
POST
/v38.0/composite
{
"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 requests
Pass results to later requests
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Demo
v34.0/composite
Streaming API
v36.0/parameterizedSearch
Push API
Avoid REST/SOAP API Polling
Long Polling
What is the Streaming API?
PushTopic: Data Changes
StreamingChannel:
Generic Notification
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
1
2
3
4
5
6
7
8
9
10
11
Register as Streaming Client
Subscribe to Topic/Channel
Update or Event Occurs
Loss of Client Connection
Message + replayId
Subscribe replayFrom: n, -2, -1
Resume
Demo
bit.ly/df-durable
v34.0/composite
Streaming API
v36.0/parameterizedSearch
Query v Search
Shout if you love SOSL
/search?q=
FIND {bungalow} IN ALL FIELDS
RETURNING Property__c
Shout if you love encoding long strings
FIND {bungalow}
IN ALL FIELDS
RETURNING Property__c
q=bungalow
in=ALL
sobject=Property__c
GET
/parameterizedSearch?
q=bungalow&
in=ALL&
sobject=Property__c
POST
/parameterizedSearch
{
"q" : "bungalow",
"in" : "ALL",
"sobject" : "Property__c"
}
Demo
“Just when I think I have learned the way to live, life
changes.”
- Hugh Prather
Questions?
Don't forget the survey
Thank Y u

Best api features of 2016

  • 1.
    Best API Features2016 An homage to progress pchittum@salesforce.com @pchittum Peter Chittum Director, Developer Evangelism, EMEA
  • 2.
    Forward-Looking Statements Statement underthe 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.
  • 3.
    Peter Chittum Director, DeveloperEvangelism, EMEA @pchittum
  • 4.
  • 5.
    “To improve isto change; to be perfect is to change often.” - Winston Churchill
  • 7.
    “The only wayto make sense out of change is to plunge into it, move with it, and join the dance.” - Alan Watts
  • 8.
  • 9.
  • 12.
  • 13.
    { "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__c Insert Record Hierarchy 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
  • 14.
  • 15.
    { "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 requests Pass results to later requests 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
  • 16.
  • 17.
  • 18.
    Push API Avoid REST/SOAPAPI Polling Long Polling What is the Streaming API?
  • 19.
  • 20.
    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 1 2 3 4 5 6 7 8 9 10 11
  • 21.
    Register as StreamingClient Subscribe to Topic/Channel Update or Event Occurs
  • 22.
    Loss of ClientConnection
  • 23.
    Message + replayId SubscribereplayFrom: n, -2, -1 Resume
  • 24.
  • 25.
  • 26.
  • 27.
    Shout if youlove SOSL
  • 28.
    /search?q= FIND {bungalow} INALL FIELDS RETURNING Property__c
  • 29.
    Shout if youlove encoding long strings
  • 30.
    FIND {bungalow} IN ALLFIELDS RETURNING Property__c
  • 31.
  • 32.
  • 33.
    POST /parameterizedSearch { "q" : "bungalow", "in": "ALL", "sobject" : "Property__c" }
  • 34.
  • 35.
    “Just when Ithink I have learned the way to live, life changes.” - Hugh Prather
  • 36.
  • 38.

Editor's Notes

  • #3 Key Takeaway: We are a publicly traded company. Please make your buying decisions only on the products commercially available from Salesforce. Talk Track: Before I begin, just a quick note that when considering future developments, whether by us or with any other solution provider, you should always base your purchasing decisions on what is currently available.