Advertisement

The Power of Salesforce APIs World Tour Edition

Developer Evangelist at salesforce.com
Dec. 15, 2016
Advertisement

More Related Content

Slideshows for you(20)

Similar to The Power of Salesforce APIs World Tour Edition(20)

Advertisement
Advertisement

The Power of Salesforce APIs World Tour Edition

  1. The Power of Salesforce APIs World Tour Developer Talk pchittum@salesforce.com @pchittum Peter Chittum Director, Developer Evangelism
  2. 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.
  3. Intro and Overview Integration Dependencies Data and CRUD APIs Salesforce Connect Apex Integration Services Roundup of Other Integration Topics
  4. Who Are You? Experience with integration and use of APIs New(ish) to Salesforce
  5. Intro and Overview
  6. What Makes a Platform…
  7. …a Platform? APIs
  8. Comprehensive APIs, Toolkits, and Support of Standards Web Service Endpoint Web Service Endpoint Apex WS/REST Outbound Messaging Business Logic Bulk API Odata (Salesforce Connect) Streaming API Topic/Channel CRUD (SOAP/REST) Data Extnernal Object Bayeux Client Applications, Devices, Middleware Java SDK Ruby gem PHP Toolkit Mobile SDK 3rd Party Adapters Apex Callouts
  9. Versioned (v38.0 currently) 3 Major Releases per Year Standard Architectural Patterns Automatic API Generation Salesforce API Implementation
  10. Workbench CLI Tools Postman cURL Tools for working with the API
  11. Integration Dependencies
  12. Identity and Authorization Security SOQL/SOSL APEX Declarative Customization It helps to know a few things about the platform.
  13. Identity: User, Profile, License Authorization: Typically OAuth
  14. User Profile Sharing Model Security Broker__c Name Phone__c Email__c Title__c Caroline King +1-612-554- 8532 cking@brokers.com Territory Manager Alistair Krei +1-415-467- 8890 akrei@brokers.com Real Estate Agent Rajesh Hamal +1-213-355- 2241 rhamal@brokers.co m Property Broker Wei Tong +1-206-888- 4320 wtong@brokers.com Real Estate Agent Profile (Configuration) Sharing (Dynamic) Entity Field Row
  15. Query and Search //SOQL – Salesforce Object Query Language SELECT Id, Name, Title__c, Beds__c Broker__r.Name FROM Property__c WHERE Beds__c >= 3 //SOSL - Salesforce Object Search Language FIND {GU19*} RETURNING Account, Property__c //Parameterized Search API /parameterizedSearch?q=bungalow&in=ALL&sobject=Property__c
  16. Apex Code Declarative Logic Customization
  17. Data and CRUD APIs
  18. Clients Applications and Services Rest API SOAP API
  19. API Endpoints Automatically 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 ...
  20. DEMO: Rest API
  21. Salesforce Connect
  22. OData 2.0/4.0 or Custom Apex External data as Salesforce entity Sync schema from system of record No data duplication Data mastered at system of record Salesforce Connect
  23. Architecture Simple Integration
  24. Demo: Salesforce Connect
  25. Apex Integration Services
  26. Apex Callout Salesforce 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 7 8
  27. Apex Rest Endpoint Custom 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
  28. Demo: Slack Integration Using Apex
  29. Roundup of Other Integration Topics
  30. Streaming API Pub/sub API to push events using long polling Can be replayed for 24 hours
  31. Lightning Out Salesforce UI in any web container
  32. Questions?
  33. Thank Y u
Advertisement