SlideShare uma empresa Scribd logo
1 de 38
Baixar para ler offline
Deep Dive into the Force.com
Canvas Framework
Jay Hurst, salesforce.com, Product Manager
@extraidea
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 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.
Jay Hurst
Product Manager
@extraidea
Questions
▪ Who has played with the Force.com
Canvas SDK?
▪ Who has thought of at least one
potential app that could be used with
Force.com Canvas?
▪ Who has actually developed a Force.
com Canvas App?
What is Force.com Canvas
Introducing Force.com Canvas
Platform service to allow external applications to be easily and
securely integrated into Salesforce from their native environment
with little re-design.
▪ Services Include
• JavaScript SDK
• Simplified Authentication (Signed Request or OAuth)
• Context Services (Including Custom Parameters)
• Cross Domain API Calls
• Eventing model
• App Registration and Management
What does Force.com Canvas do?
Your Web Application is surfaced inside salesforce.com
• Displayed using standard web technology
• JavaScript SDK allows communication between apps
• Installation and management of the app is controlled by the admin

SDK
Force.com Canvas Usage Flow
1.

Canvas App is opened which sends a
Signed Request to the 3rd Party App

2.

The 3rd Party App responds with HTML
that is loaded into the salesforce UI

3.

The user interacts with the 3rd party app

4.

The 3rd party app uses the Canvas
JavaScript SDK to make a call to a
server side JavaScript library

5.

Salesforce acts on the behalf of the
user and posts to the request

6.

Alternatively, the 3rd party app can
communicate server-to-server with
salesforce via the standard APIs
When Would I Use Force.com Canvas
A few key times to consider Force.com Canvas
▪ You have data that lives outside of salesforce.com
• Canvas allows you to display the data directly inside the salesforce.com UI
• You do not need to bring the data inside of salesforce.com

▪ Your developer prefer their language of choice
• Rather than use Visualforce and Apex, use your language of choice
• You build the UI and use the Canvas API to provide the data

▪ You have an existing application
• If your users have to manage data in multiple places
• Potentially use the existing app rather than recreating from scratch

Salesforce.com Confidential
What is the Signed Request Access Method?
The signed request is the default (and recommended) access method.
▪
▪
▪

When you click the Canvas app, we POST a signed request to your endpoint
You can verify the request was sent by salesforce and then view context info
Context contains data like:
•
•
•
•
•

Scoped OAuth Token
User Info (Name, email, ID, etc..)
Company Info (Company name, ID, etc…)
Environment Info (page is the canvas on, size of the iFrame)
Useful Links
Force.com Canvas – You code it, we show it!
Regardless of your language of choice, JavaScript libraries allow
your app to connect with salesforce at a UI and API layer:

SD
K
Force.com Canvas – Setup
Steve Pepper
Senior Developer
Creating the Canvas App
Canvas Apps have a metadata representation in salesforce.com
▪ This determines how the app can connect into salesforce.com
• Built off of the Connected Apps Framework

▪ Set the Basic Data
• Name, icons, contact info

▪ Set the OAuth Data
• Callback URL, Level of Access

▪ Set the Force.com Canvas data
• Canvas URL, Access Method, Locations

Salesforce.com Confidential
Canvas Locations
Determines where your Canvas App can show inside salesforce
▪ Chatter Tab
▪ Visualforce Page
▪ Open CTI
▪ Console
▪ Publisher (Pilot)
• Allows you to develop a Canvas App for the Publisher

▪ Chatter Feed (Pilot)
• Allows you to develop a Canvas App that can appear in a user’s Chatter Feed

Salesforce.com Confidential
Demo
Force.com Canvas – Eventing and
Streaming API
Babu Naidu
Senior Developer
@pbnnbp
Canvas Eventing
Lightweight JSON eventing framework
▪ Allows your app to publish and subscribe to events
• The events are sent through the Canvas API
• Event happen in browser
- Data is not sent to salesforce unless you choose

▪ Salesforce publishes and listens to specific events
• This allows your app to richly interact with salesforce

▪ You can also publish and subscribe to event in Visualforce
• This allows your app to communicate with Visualforce pages and vice versa

▪ Events happen within the page (not across tabs)

Salesforce.com Confidential
Canvas and the Streaming API
The Canvas API provides events that allow you access to the
Streaming API
▪ You can create, delete, and subscribe to Streaming Topics
• Done through the Canvas Eventing model

▪ The Canvas API manages the CometD connection
• Your app does not need to manage its own

▪ The Canvas API multiplexes streaming requests
• This allows multiple apps to use the streaming API, but only a single streaming
connection is required

Salesforce.com Confidential
Demo
Force.com Canvas – Publisher and
Chatter Feed
Chris Jolley
Lead Developer
@jolley
Force.com Canvas – Publisher Quick Action (Pilot)
We have expanded the Quick Actions to now support Force.com
Canvas Applications
▪ Your application can now be exposed directly in the publisher
• Common actions from your app are now available to your end users

▪ Your application can plug into the Chatter lifecycle
• You can tell the publisher that the app is ready to “Share”
• You can detect when events are fired from the publisher
Force.com Canvas – Publisher Events
Publisher Events allow interaction with the native publisher
▪ Your application can subscribe to events from the publisher
• publisher.setupPanel – Fired when the Publisher is loaded
• publisher.showPanel – Fired when the Canvas action is opened
• publisher.clearPanelState – Fired when the Canvas action is closed
• publisher.failure – Fired if there was a failure on the share
• publisher.success – Fired if the share was successful
• publisher.getPayload – Fired when Share is clicked (gets content from the app)

▪ Your application can publish events to the publisher
• publisher.setPayload – Sends payload to the publisher (response to getPayload)
• publisher.setValidForSubmit – Enabled the Share button
Force.com Canvas in the Chatter Feed (Pilot)
Expand the Chatter Feed to show your app information
▪ You canvas app can open inline directly in the feed
▪ Provides the ability to deliver app specific content directly to your users
• Your info in our feed

▪ The feed item contains canvas specific information
• Thumbnail image
• Canvas Parameters
• Title
• Description
• Height information
Interacting with a Canvas Feed Item
The user interacts with the feed and launches your Canvas App
▪ By clicking the Feed Link, the signed request is fired and the canvas
app opens up
• Signed request contains information specific to your app

▪ Once opened, the user interacts with your app
• The browser displays your content
• User can interact directly with your content

▪ Your app can access the salesforce data layer
• The Canvas API can be used to perform interactive connections to salesforce
data
Demo
Force.com Canvas – Debugging
Kari Hotchkiss
Senior Quality Engineer
@

Mandy Blumreich
Senior Quality Engineer
@
Canvas Debugging
Canvas actions all happen in the browser
▪ Your app is surfaced within an iFrame
▪ User’s browser and machine determine connectivity access
▪ Canvas API is all JavaScript Ajax requests
▪ Events are sent using JSON and JavaScript

JavaScript Debuggers are you best friends
▪ Firebug
▪ Chrome Developer Tools
▪ IE 9+ Debug Console

Salesforce.com Confidential
JavaScript Debugging
Use standard JavaScript debugging practices
▪ Use console.out calls to dump info to the tools
▪ Use breakpoints and step through the code when needed
▪ Make sure you are capturing and relaying errors that come from
salesforce calls
• It is easy to swallow these errors, but the end user does not know what is going on

Salesforce.com Confidential
Demo
What Have We Learned
▪ Explored the Current Canvas Features
▪ Canvas Locations (Chatter Tab, VF, Publisher, Chatter Feed)
▪ Canvas Events and resizing
▪ Canvas MD API
▪ Canvas Streaming API

▪ Seen code level demo of a canvas app
▪ Seen troubleshooting techniques
We want to hear
from YOU!
Please take a moment to complete our
session survey
Surveys can be found in the “My Agenda”
portion of the Dreamforce app
Jay Hurst

Steve Pepper

Babu Naidu

Chris Jolley

Product Manager,
@extraidea

Senior Developer,

Senior Developer,
@pbnnbp

Lead Developer,
@jolley

Kari Hotchkiss

Mandy Blumreich

Senior Quality Engineer, Senior Quality Engineer,
@
@
Where To Next?
▪ Other Force.com Canvas Sessions
▪ Force.com Canvas Workbook in the DevZone
▪ Force.com Canvas Developer Page
▪ Force.com Canvas Topic Page – http://bit.ly/forcecanvas
▪ Email or tweet Jay – jhurst@salesforce.com/@extraidea

▪ SalesWays Contact
▪ Spanning Contact
Dive Deep Into the Force.com Canvas Framework

Mais conteúdo relacionado

Mais procurados

Mais procurados (20)

Apex Code Analysis Using the Tooling API and Canvas
Apex Code Analysis Using the Tooling API and CanvasApex Code Analysis Using the Tooling API and Canvas
Apex Code Analysis Using the Tooling API and Canvas
 
Salesforce Streaming event - PushTopic and Generic Events
Salesforce Streaming event - PushTopic and Generic EventsSalesforce Streaming event - PushTopic and Generic Events
Salesforce Streaming event - PushTopic and Generic Events
 
.Net Core
.Net Core.Net Core
.Net Core
 
Enterprise Integration - Solution Patterns From the Field
Enterprise Integration - Solution Patterns From the FieldEnterprise Integration - Solution Patterns From the Field
Enterprise Integration - Solution Patterns From the Field
 
Integrating Active Directory with Salesforce
Integrating Active Directory with SalesforceIntegrating Active Directory with Salesforce
Integrating Active Directory with Salesforce
 
Introduction to Heroku
Introduction to HerokuIntroduction to Heroku
Introduction to Heroku
 
Lightning web components
Lightning web components Lightning web components
Lightning web components
 
Salesforce CPQ updated 1.pptx
Salesforce CPQ updated 1.pptxSalesforce CPQ updated 1.pptx
Salesforce CPQ updated 1.pptx
 
Migrate To Lightning Web Components from Aura framework to increase performance
Migrate To Lightning Web Components from Aura framework to increase performance Migrate To Lightning Web Components from Aura framework to increase performance
Migrate To Lightning Web Components from Aura framework to increase performance
 
Champion Productivity with Service Cloud
Champion Productivity with Service CloudChampion Productivity with Service Cloud
Champion Productivity with Service Cloud
 
Apex Trigger Debugging: Solving the Hard Problems
Apex Trigger Debugging: Solving the Hard ProblemsApex Trigger Debugging: Solving the Hard Problems
Apex Trigger Debugging: Solving the Hard Problems
 
Architect day 20181128 - Afternoon Session
Architect day 20181128 - Afternoon SessionArchitect day 20181128 - Afternoon Session
Architect day 20181128 - Afternoon Session
 
Canvas and Model Driven Apps
Canvas and Model Driven AppsCanvas and Model Driven Apps
Canvas and Model Driven Apps
 
Push Notification
Push NotificationPush Notification
Push Notification
 
Introduction to Lightning Web Component
Introduction to Lightning Web Component Introduction to Lightning Web Component
Introduction to Lightning Web Component
 
Getting started with Salesforce security
Getting started with Salesforce securityGetting started with Salesforce security
Getting started with Salesforce security
 
Salesforce Service cloud 3 presentation
Salesforce Service cloud 3 presentation Salesforce Service cloud 3 presentation
Salesforce Service cloud 3 presentation
 
Introduction to Visualforce
Introduction to VisualforceIntroduction to Visualforce
Introduction to Visualforce
 
Replicate Salesforce Data in Real Time with Change Data Capture
Replicate Salesforce Data in Real Time with Change Data CaptureReplicate Salesforce Data in Real Time with Change Data Capture
Replicate Salesforce Data in Real Time with Change Data Capture
 
Salesforce Integration Pattern Overview
Salesforce Integration Pattern OverviewSalesforce Integration Pattern Overview
Salesforce Integration Pattern Overview
 

Destaque

Force.com Canvas: Salesforce1, SAML, & Apex...Oh My!
Force.com Canvas: Salesforce1, SAML, & Apex...Oh My!Force.com Canvas: Salesforce1, SAML, & Apex...Oh My!
Force.com Canvas: Salesforce1, SAML, & Apex...Oh My!
Salesforce Developers
 
Authentication with OAuth and Connected Apps
Authentication with OAuth and Connected AppsAuthentication with OAuth and Connected Apps
Authentication with OAuth and Connected Apps
Salesforce Developers
 

Destaque (17)

Force.com Canvas: Salesforce1, SAML, & Apex...Oh My!
Force.com Canvas: Salesforce1, SAML, & Apex...Oh My!Force.com Canvas: Salesforce1, SAML, & Apex...Oh My!
Force.com Canvas: Salesforce1, SAML, & Apex...Oh My!
 
Salesforce1 dev week UYSDUG 2014 - the force canvas spark
Salesforce1 dev week UYSDUG 2014 - the force canvas sparkSalesforce1 dev week UYSDUG 2014 - the force canvas spark
Salesforce1 dev week UYSDUG 2014 - the force canvas spark
 
force.com Canvas Overview: Leveraging Legacy Applications to Become a Custome...
force.com Canvas Overview: Leveraging Legacy Applications to Become a Custome...force.com Canvas Overview: Leveraging Legacy Applications to Become a Custome...
force.com Canvas Overview: Leveraging Legacy Applications to Become a Custome...
 
Dive Deep into Apex: Advanced Apex!
Dive Deep into Apex: Advanced Apex! Dive Deep into Apex: Advanced Apex!
Dive Deep into Apex: Advanced Apex!
 
Force.com Canvas - a Quick Introduction
Force.com Canvas - a Quick IntroductionForce.com Canvas - a Quick Introduction
Force.com Canvas - a Quick Introduction
 
O auth, sso, saml, canvas app zhugin(final)
O auth, sso, saml, canvas app   zhugin(final)O auth, sso, saml, canvas app   zhugin(final)
O auth, sso, saml, canvas app zhugin(final)
 
CIS14: OAuth and OpenID Connect in Action
CIS14: OAuth and OpenID Connect in ActionCIS14: OAuth and OpenID Connect in Action
CIS14: OAuth and OpenID Connect in Action
 
Trust Me, I'm An Architect
Trust Me, I'm An ArchitectTrust Me, I'm An Architect
Trust Me, I'm An Architect
 
Force.com Canvas: 2 Case Studies and a Roadmap
Force.com Canvas: 2 Case Studies and a RoadmapForce.com Canvas: 2 Case Studies and a Roadmap
Force.com Canvas: 2 Case Studies and a Roadmap
 
Authentication with OAuth and Connected Apps
Authentication with OAuth and Connected AppsAuthentication with OAuth and Connected Apps
Authentication with OAuth and Connected Apps
 
Integrating Active Directory With Salesforce Using Identity Connect
Integrating Active Directory With Salesforce Using Identity ConnectIntegrating Active Directory With Salesforce Using Identity Connect
Integrating Active Directory With Salesforce Using Identity Connect
 
Designing custom REST and SOAP interfaces on Force.com
Designing custom REST and SOAP interfaces on Force.comDesigning custom REST and SOAP interfaces on Force.com
Designing custom REST and SOAP interfaces on Force.com
 
Becoming a Salesforce.com Technical Architect
Becoming a Salesforce.com Technical ArchitectBecoming a Salesforce.com Technical Architect
Becoming a Salesforce.com Technical Architect
 
Secure Development on the Salesforce Platform - Part I
Secure Development on the Salesforce Platform - Part ISecure Development on the Salesforce Platform - Part I
Secure Development on the Salesforce Platform - Part I
 
"How do I Architect?" - Quick Introduction to Architecture for Salesforce Ad...
"How do I Architect?"  - Quick Introduction to Architecture for Salesforce Ad..."How do I Architect?"  - Quick Introduction to Architecture for Salesforce Ad...
"How do I Architect?" - Quick Introduction to Architecture for Salesforce Ad...
 
Advanced Platform Series - OAuth and Social Authentication
Advanced Platform Series - OAuth and Social AuthenticationAdvanced Platform Series - OAuth and Social Authentication
Advanced Platform Series - OAuth and Social Authentication
 
Secure Development on the Salesforce Platform - Part 2
Secure Development on the Salesforce Platform - Part 2Secure Development on the Salesforce Platform - Part 2
Secure Development on the Salesforce Platform - Part 2
 

Semelhante a Dive Deep Into the Force.com Canvas Framework

Spring '14 Release Developer Preview Webinar
Spring '14 Release Developer Preview WebinarSpring '14 Release Developer Preview Webinar
Spring '14 Release Developer Preview Webinar
Salesforce Developers
 
Building JavaScript Applications on the Salesforce1 Platform
Building JavaScript Applications on the Salesforce1 PlatformBuilding JavaScript Applications on the Salesforce1 Platform
Building JavaScript Applications on the Salesforce1 Platform
Salesforce Developers
 

Semelhante a Dive Deep Into the Force.com Canvas Framework (20)

Force.com Canvas in the Publisher and Chatter Feed
Force.com Canvas in the Publisher and Chatter FeedForce.com Canvas in the Publisher and Chatter Feed
Force.com Canvas in the Publisher and Chatter Feed
 
Salesforce1: Every Developer is a Mobile Developer
Salesforce1: Every Developer is a Mobile DeveloperSalesforce1: Every Developer is a Mobile Developer
Salesforce1: Every Developer is a Mobile Developer
 
1 + 1 = 3
1 + 1 = 31 + 1 = 3
1 + 1 = 3
 
Emerging Technologies: Heroku for ISVs (October 13, 2014)
Emerging Technologies: Heroku for ISVs (October 13, 2014)Emerging Technologies: Heroku for ISVs (October 13, 2014)
Emerging Technologies: Heroku for ISVs (October 13, 2014)
 
Salesforce.com API Series: Service Cloud Console Deep Dive
Salesforce.com API Series: Service Cloud Console Deep DiveSalesforce.com API Series: Service Cloud Console Deep Dive
Salesforce.com API Series: Service Cloud Console Deep Dive
 
Design Patterns Every ISV Needs to Know (October 15, 2014)
Design Patterns Every ISV Needs to Know (October 15, 2014)Design Patterns Every ISV Needs to Know (October 15, 2014)
Design Patterns Every ISV Needs to Know (October 15, 2014)
 
Introducing the Salesforce platform
Introducing the Salesforce platformIntroducing the Salesforce platform
Introducing the Salesforce platform
 
Trailhead live - Overview of Salesforce App Cloud
Trailhead live - Overview of Salesforce App CloudTrailhead live - Overview of Salesforce App Cloud
Trailhead live - Overview of Salesforce App Cloud
 
Trailhead in a Box & Winter 20 Release
Trailhead in a Box & Winter 20 ReleaseTrailhead in a Box & Winter 20 Release
Trailhead in a Box & Winter 20 Release
 
APP Academy: Build Your First App (October 13, 2014)
APP Academy: Build Your First App (October 13, 2014)APP Academy: Build Your First App (October 13, 2014)
APP Academy: Build Your First App (October 13, 2014)
 
Hands-on Workshop: Intermediate Development with Heroku and Force.com
Hands-on Workshop: Intermediate Development with Heroku and Force.comHands-on Workshop: Intermediate Development with Heroku and Force.com
Hands-on Workshop: Intermediate Development with Heroku and Force.com
 
CloudOps evening presentation from Salesforce.com
CloudOps evening presentation from Salesforce.comCloudOps evening presentation from Salesforce.com
CloudOps evening presentation from Salesforce.com
 
Tech Enablement Webinar for ISVs (March 16, 2017)
Tech Enablement Webinar for ISVs (March 16, 2017)Tech Enablement Webinar for ISVs (March 16, 2017)
Tech Enablement Webinar for ISVs (March 16, 2017)
 
Spring '14 Release Developer Preview Webinar
Spring '14 Release Developer Preview WebinarSpring '14 Release Developer Preview Webinar
Spring '14 Release Developer Preview Webinar
 
Winter'18 Developer Preview Webinar
Winter'18 Developer Preview WebinarWinter'18 Developer Preview Webinar
Winter'18 Developer Preview Webinar
 
Dreamwares_Salesforce Updated
Dreamwares_Salesforce UpdatedDreamwares_Salesforce Updated
Dreamwares_Salesforce Updated
 
Building JavaScript Applications on the Salesforce1 Platform
Building JavaScript Applications on the Salesforce1 PlatformBuilding JavaScript Applications on the Salesforce1 Platform
Building JavaScript Applications on the Salesforce1 Platform
 
Communities & Dreamforce Key Takeaways
Communities & Dreamforce Key TakeawaysCommunities & Dreamforce Key Takeaways
Communities & Dreamforce Key Takeaways
 
Lightning Experience for ISVs
Lightning Experience for ISVsLightning Experience for ISVs
Lightning Experience for ISVs
 
Summer '13 Developer Preview Webinar
Summer '13 Developer Preview WebinarSummer '13 Developer Preview Webinar
Summer '13 Developer Preview Webinar
 

Mais de Salesforce Developers

Mais de Salesforce Developers (20)

Sample Gallery: Reference Code and Best Practices for Salesforce Developers
Sample Gallery: Reference Code and Best Practices for Salesforce DevelopersSample Gallery: Reference Code and Best Practices for Salesforce Developers
Sample Gallery: Reference Code and Best Practices for Salesforce Developers
 
Maximizing Salesforce Lightning Experience and Lightning Component Performance
Maximizing Salesforce Lightning Experience and Lightning Component PerformanceMaximizing Salesforce Lightning Experience and Lightning Component Performance
Maximizing Salesforce Lightning Experience and Lightning Component Performance
 
Local development with Open Source Base Components
Local development with Open Source Base ComponentsLocal development with Open Source Base Components
Local development with Open Source Base Components
 
TrailheaDX India : Developer Highlights
TrailheaDX India : Developer HighlightsTrailheaDX India : Developer Highlights
TrailheaDX India : Developer Highlights
 
Why developers shouldn’t miss TrailheaDX India
Why developers shouldn’t miss TrailheaDX IndiaWhy developers shouldn’t miss TrailheaDX India
Why developers shouldn’t miss TrailheaDX India
 
CodeLive: Build Lightning Web Components faster with Local Development
CodeLive: Build Lightning Web Components faster with Local DevelopmentCodeLive: Build Lightning Web Components faster with Local Development
CodeLive: Build Lightning Web Components faster with Local Development
 
CodeLive: Converting Aura Components to Lightning Web Components
CodeLive: Converting Aura Components to Lightning Web ComponentsCodeLive: Converting Aura Components to Lightning Web Components
CodeLive: Converting Aura Components to Lightning Web Components
 
Enterprise-grade UI with open source Lightning Web Components
Enterprise-grade UI with open source Lightning Web ComponentsEnterprise-grade UI with open source Lightning Web Components
Enterprise-grade UI with open source Lightning Web Components
 
TrailheaDX and Summer '19: Developer Highlights
TrailheaDX and Summer '19: Developer HighlightsTrailheaDX and Summer '19: Developer Highlights
TrailheaDX and Summer '19: Developer Highlights
 
Live coding with LWC
Live coding with LWCLive coding with LWC
Live coding with LWC
 
Lightning web components - Episode 4 : Security and Testing
Lightning web components  - Episode 4 : Security and TestingLightning web components  - Episode 4 : Security and Testing
Lightning web components - Episode 4 : Security and Testing
 
LWC Episode 3- Component Communication and Aura Interoperability
LWC Episode 3- Component Communication and Aura InteroperabilityLWC Episode 3- Component Communication and Aura Interoperability
LWC Episode 3- Component Communication and Aura Interoperability
 
Lightning web components episode 2- work with salesforce data
Lightning web components   episode 2- work with salesforce dataLightning web components   episode 2- work with salesforce data
Lightning web components episode 2- work with salesforce data
 
Lightning web components - Episode 1 - An Introduction
Lightning web components - Episode 1 - An IntroductionLightning web components - Episode 1 - An Introduction
Lightning web components - Episode 1 - An Introduction
 
Migrating CPQ to Advanced Calculator and JSQCP
Migrating CPQ to Advanced Calculator and JSQCPMigrating CPQ to Advanced Calculator and JSQCP
Migrating CPQ to Advanced Calculator and JSQCP
 
Scale with Large Data Volumes and Big Objects in Salesforce
Scale with Large Data Volumes and Big Objects in SalesforceScale with Large Data Volumes and Big Objects in Salesforce
Scale with Large Data Volumes and Big Objects in Salesforce
 
Modern Development with Salesforce DX
Modern Development with Salesforce DXModern Development with Salesforce DX
Modern Development with Salesforce DX
 
Get Into Lightning Flow Development
Get Into Lightning Flow DevelopmentGet Into Lightning Flow Development
Get Into Lightning Flow Development
 
Integrate CMS Content Into Lightning Communities with CMS Connect
Integrate CMS Content Into Lightning Communities with CMS ConnectIntegrate CMS Content Into Lightning Communities with CMS Connect
Integrate CMS Content Into Lightning Communities with CMS Connect
 
Introduction to MuleSoft
Introduction to MuleSoftIntroduction to MuleSoft
Introduction to MuleSoft
 

Último

Último (20)

Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 

Dive Deep Into the Force.com Canvas Framework

  • 1. Deep Dive into the Force.com Canvas Framework Jay Hurst, salesforce.com, Product Manager @extraidea
  • 2. 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 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.
  • 4. Questions ▪ Who has played with the Force.com Canvas SDK? ▪ Who has thought of at least one potential app that could be used with Force.com Canvas? ▪ Who has actually developed a Force. com Canvas App?
  • 6. Introducing Force.com Canvas Platform service to allow external applications to be easily and securely integrated into Salesforce from their native environment with little re-design. ▪ Services Include • JavaScript SDK • Simplified Authentication (Signed Request or OAuth) • Context Services (Including Custom Parameters) • Cross Domain API Calls • Eventing model • App Registration and Management
  • 7. What does Force.com Canvas do? Your Web Application is surfaced inside salesforce.com • Displayed using standard web technology • JavaScript SDK allows communication between apps • Installation and management of the app is controlled by the admin SDK
  • 8. Force.com Canvas Usage Flow 1. Canvas App is opened which sends a Signed Request to the 3rd Party App 2. The 3rd Party App responds with HTML that is loaded into the salesforce UI 3. The user interacts with the 3rd party app 4. The 3rd party app uses the Canvas JavaScript SDK to make a call to a server side JavaScript library 5. Salesforce acts on the behalf of the user and posts to the request 6. Alternatively, the 3rd party app can communicate server-to-server with salesforce via the standard APIs
  • 9. When Would I Use Force.com Canvas A few key times to consider Force.com Canvas ▪ You have data that lives outside of salesforce.com • Canvas allows you to display the data directly inside the salesforce.com UI • You do not need to bring the data inside of salesforce.com ▪ Your developer prefer their language of choice • Rather than use Visualforce and Apex, use your language of choice • You build the UI and use the Canvas API to provide the data ▪ You have an existing application • If your users have to manage data in multiple places • Potentially use the existing app rather than recreating from scratch Salesforce.com Confidential
  • 10. What is the Signed Request Access Method? The signed request is the default (and recommended) access method. ▪ ▪ ▪ When you click the Canvas app, we POST a signed request to your endpoint You can verify the request was sent by salesforce and then view context info Context contains data like: • • • • • Scoped OAuth Token User Info (Name, email, ID, etc..) Company Info (Company name, ID, etc…) Environment Info (page is the canvas on, size of the iFrame) Useful Links
  • 11. Force.com Canvas – You code it, we show it! Regardless of your language of choice, JavaScript libraries allow your app to connect with salesforce at a UI and API layer: SD K
  • 14. Creating the Canvas App Canvas Apps have a metadata representation in salesforce.com ▪ This determines how the app can connect into salesforce.com • Built off of the Connected Apps Framework ▪ Set the Basic Data • Name, icons, contact info ▪ Set the OAuth Data • Callback URL, Level of Access ▪ Set the Force.com Canvas data • Canvas URL, Access Method, Locations Salesforce.com Confidential
  • 15. Canvas Locations Determines where your Canvas App can show inside salesforce ▪ Chatter Tab ▪ Visualforce Page ▪ Open CTI ▪ Console ▪ Publisher (Pilot) • Allows you to develop a Canvas App for the Publisher ▪ Chatter Feed (Pilot) • Allows you to develop a Canvas App that can appear in a user’s Chatter Feed Salesforce.com Confidential
  • 16. Demo
  • 17. Force.com Canvas – Eventing and Streaming API
  • 19. Canvas Eventing Lightweight JSON eventing framework ▪ Allows your app to publish and subscribe to events • The events are sent through the Canvas API • Event happen in browser - Data is not sent to salesforce unless you choose ▪ Salesforce publishes and listens to specific events • This allows your app to richly interact with salesforce ▪ You can also publish and subscribe to event in Visualforce • This allows your app to communicate with Visualforce pages and vice versa ▪ Events happen within the page (not across tabs) Salesforce.com Confidential
  • 20. Canvas and the Streaming API The Canvas API provides events that allow you access to the Streaming API ▪ You can create, delete, and subscribe to Streaming Topics • Done through the Canvas Eventing model ▪ The Canvas API manages the CometD connection • Your app does not need to manage its own ▪ The Canvas API multiplexes streaming requests • This allows multiple apps to use the streaming API, but only a single streaming connection is required Salesforce.com Confidential
  • 21. Demo
  • 22. Force.com Canvas – Publisher and Chatter Feed
  • 24. Force.com Canvas – Publisher Quick Action (Pilot) We have expanded the Quick Actions to now support Force.com Canvas Applications ▪ Your application can now be exposed directly in the publisher • Common actions from your app are now available to your end users ▪ Your application can plug into the Chatter lifecycle • You can tell the publisher that the app is ready to “Share” • You can detect when events are fired from the publisher
  • 25. Force.com Canvas – Publisher Events Publisher Events allow interaction with the native publisher ▪ Your application can subscribe to events from the publisher • publisher.setupPanel – Fired when the Publisher is loaded • publisher.showPanel – Fired when the Canvas action is opened • publisher.clearPanelState – Fired when the Canvas action is closed • publisher.failure – Fired if there was a failure on the share • publisher.success – Fired if the share was successful • publisher.getPayload – Fired when Share is clicked (gets content from the app) ▪ Your application can publish events to the publisher • publisher.setPayload – Sends payload to the publisher (response to getPayload) • publisher.setValidForSubmit – Enabled the Share button
  • 26. Force.com Canvas in the Chatter Feed (Pilot) Expand the Chatter Feed to show your app information ▪ You canvas app can open inline directly in the feed ▪ Provides the ability to deliver app specific content directly to your users • Your info in our feed ▪ The feed item contains canvas specific information • Thumbnail image • Canvas Parameters • Title • Description • Height information
  • 27. Interacting with a Canvas Feed Item The user interacts with the feed and launches your Canvas App ▪ By clicking the Feed Link, the signed request is fired and the canvas app opens up • Signed request contains information specific to your app ▪ Once opened, the user interacts with your app • The browser displays your content • User can interact directly with your content ▪ Your app can access the salesforce data layer • The Canvas API can be used to perform interactive connections to salesforce data
  • 28. Demo
  • 29. Force.com Canvas – Debugging
  • 30. Kari Hotchkiss Senior Quality Engineer @ Mandy Blumreich Senior Quality Engineer @
  • 31. Canvas Debugging Canvas actions all happen in the browser ▪ Your app is surfaced within an iFrame ▪ User’s browser and machine determine connectivity access ▪ Canvas API is all JavaScript Ajax requests ▪ Events are sent using JSON and JavaScript JavaScript Debuggers are you best friends ▪ Firebug ▪ Chrome Developer Tools ▪ IE 9+ Debug Console Salesforce.com Confidential
  • 32. JavaScript Debugging Use standard JavaScript debugging practices ▪ Use console.out calls to dump info to the tools ▪ Use breakpoints and step through the code when needed ▪ Make sure you are capturing and relaying errors that come from salesforce calls • It is easy to swallow these errors, but the end user does not know what is going on Salesforce.com Confidential
  • 33. Demo
  • 34. What Have We Learned ▪ Explored the Current Canvas Features ▪ Canvas Locations (Chatter Tab, VF, Publisher, Chatter Feed) ▪ Canvas Events and resizing ▪ Canvas MD API ▪ Canvas Streaming API ▪ Seen code level demo of a canvas app ▪ Seen troubleshooting techniques
  • 35. We want to hear from YOU! Please take a moment to complete our session survey Surveys can be found in the “My Agenda” portion of the Dreamforce app
  • 36. Jay Hurst Steve Pepper Babu Naidu Chris Jolley Product Manager, @extraidea Senior Developer, Senior Developer, @pbnnbp Lead Developer, @jolley Kari Hotchkiss Mandy Blumreich Senior Quality Engineer, Senior Quality Engineer, @ @
  • 37. Where To Next? ▪ Other Force.com Canvas Sessions ▪ Force.com Canvas Workbook in the DevZone ▪ Force.com Canvas Developer Page ▪ Force.com Canvas Topic Page – http://bit.ly/forcecanvas ▪ Email or tweet Jay – jhurst@salesforce.com/@extraidea ▪ SalesWays Contact ▪ Spanning Contact