Building JavaScript Applications on the Salesforce1 Platform


Published on


In this session, we will discuss and demonstrate how to build engaging employee and customer-facing applications in JavaScript on top of the Salesforce1 Platform.

We will explore all the aspects involved in building these next generation applications including authentication, the REST APIs, mobile development options, and different integration scenarios. We will also share some inspiring examples built on the Salesforce1 Platform with leading JavaScript frameworks such as AngularJS, Ionic, BackboneJS, Ratchet and more.

Key Takeaways:

::Get an overview of the Salesforce1 Platform from a developer point of view
::Understand Salesforce OAuth Authentication
::Acquire knowledge on the Salesforce REST APIs
::Get insight on building a Single Page Application on the Salesforce1 Platform
::Explore using modern JavaScript Frameworks such as AngularJS, Ionic, Backbone, etc.
::Gain knowledge on building state-of-the art mobile apps on the Salesforce1 Platform
::Get familiar with building custom apps with Heroku and Heroku Connect

Intended Audience:

This session is for both seasoned JavaScript developers who want to learn how to build applications on top of the Salesforce1 Platform, and seasoned Salesforce developers who want to learn how to create amazing user experiences in JavaScript.

Recommended Resources:

Published in: Technology

Building JavaScript Applications on the Salesforce1 Platform

  1. 1. Building JavaScript Applications on the Salesforce1 Platform June 19, 2014
  2. 2. #forcewebinar Speaker Christophe Coenraets Developer Evangelist @ccoenraets
  3. 3. #forcewebinar Safe Harbor Safe harbor 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, 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 intellectual property and other litigation, risks associated with 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- products, and utilization and selling to larger enterprise customers. Further information on potential factors that could affect the financial results of, inc. is included in our annual report on Form 10-Q for the most recent fiscal quarter ended July 31, 2012. This 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., inc. assumes no obligation and does not intend to update these forward-looking statements.
  4. 4. #forcewebinar Go Social! @salesforcedevs / #forcewebinar Salesforce Developers +Salesforce Developers Salesforce Developers Salesforce Developers The video will be posted to YouTube & the webinar recap page (same URL as registration). This webinar is being recorded!
  5. 5. #forcewebinar Have Questions?  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
  6. 6. #forcewebinar Agenda  Why Salesforce for JavaScript Developers?  Why JavaScript for Salesforce Developers?  Five Reference Architectures  Single Page Applications with AngularJS and Ionic
  7. 7. #forcewebinar Why Salesforce? Idea Build App Idea buy & setup hardware install complex software define user access build & test security make it mobile & social setup reporting & analytics build app Traditional Platforms 6-12 Months? App App
  8. 8. Develop, package and instantly deploy apps Access rich APIs and frameworks Code in your favorite language Add fields, design layouts, and manage users Point-and-click workflow & business logic Drag-and-drop reports and dashboards Programmatic Declarative Programmatic and Declarative Development
  9. 9. Why JavaScript? 1. Build Engaging User Experiences 2. Leverage JavaScript Libraries 3. Build Custom Applications
  10. 10. #forcewebinar Five Reference Architectures 1. JavaScript in Visualforce Pages 2. JavaScript Apps Hosted Externally 3. Canvas Apps 4. Hybrid Apps 5. Consumer Apps
  11. 11. 1. JavaScript in Visualforce Pages (REST) JavaScript Remoting Remote Objects Visualforce Page
  12. 12. Demos
  13. 13. 2. JavaScript Apps Hosted Externally REST APIs app.js index.html OAuth HTTP Server Cross Domain Policy
  14. 14. 2. JavaScript Apps Hosted Externally app.js index.html OAuth REST APIs HTTP Server Proxy
  15. 15.
  16. 16.
  17. 17. Connected App
  18. 18. #forcewebinar ForceTK: JavaScript REST API Toolkit
  19. 19. 3. Embed a Canvas App iframe with context about: – Current user – Current page JavaScript SDK
  20. 20. 4. Hybrid Apps (Mobile SDK) REST APIs OAuth
  21. 21. #forcewebinar Mobile SDK for Hybrid Apps  Wrapper  Bridge  Hybrid Remote: – Visualforce Pages loaded in native container as needed  Hybrid Local: – HTML + JS + CSS installed locally on the device
  22. 22. #forcewebinar Single Page Application (SPA) <html> <head> <title>My App</title> <script src="app.js"></script> </head> <body></body> </html>
  23. 23. #forcewebinar Single Page Application  Web app that lives in a single HTML page  Views created in JavaScript and injected into DOM  Well suited for mobile apps: – More responsive (no network dependency to get the UI) – Works offline
  24. 24. #forcewebinar New Challenges  Create complex apps in JavaScript  Long-lived DOM  Native-like user experiences
  25. 25. JavaScript Frameworks Can Help DOM Architecture UI Full stack Custom stack
  26. 26. #forcewebinar  MVC Architecture  Templates  Data Binding  UI Layer on top of AngularJS  UI Components  UI Patterns +
  27. 27. Tabs Side MenusLists Action Sheets
  28. 28. Contacts Demo
  29. 29. 5. Consumer App Case CampaignProduct Contact Interactio n CampaignProduct Contact Interactio n Marketing Manager Customer Heroku Connect REST
  30. 30. Nibs Demo
  31. 31. #forcewebinar Recap  Use JavaScript in Visualforce pages to deliver great user experiences  Create connected apps in JavaScript that authenticate with Salesforce through OAuth and access data using APIs  Create Hybrid Apps in JavaScript using the Mobile SDK  Use Frameworks like AngularJS and Ionic to create Single Page Applications  Combine the Salesforce, Heroku, and Heroku Connect to deliver engaging consumer apps
  32. 32. #forcewebinar Resources  REST API Home –  Mobile SDK Home –  AngularJS –  Ionic Framework –
  33. 33. #forcewebinar Next Steps  Salesforce Developer workshop –
  34. 34. #forcewebinar Survey Your feedback is crucial to the success of our webinar programs. Thank you! #forcewebinar
  35. 35. #forcewebinar July 11- 13 July 18- 20 July 25- 27 July 18- 20 #summerofhacks
  36. 36. #forcewebinar October 13-16, 2014 • San Francisco, CA $899 DEVELOPER DISCOUNT CODE: D14DVLPR #devzone
  37. 37. #forcewebinar Q & A Christophe Coenraets Developer Evangelist @ccoenraets