Questions tagged [canvas]

Force.com Canvas is a set of tools and JavaScript APIs that you can use to expose an application as a canvas app.

Filter by
Sorted by
Tagged with
49
votes
3answers
20k views

What's the practical difference between canvas & connected apps?

Question What's the point of canvas vs. connected apps, and what should I be thinking about when choosing between them? Background We're in the process of building out a couple tools that will be ...
10
votes
1answer
2k views

Can I embed a Salesforce app, via Canvas, in another org?

Here is the situation (And I am still new to this platform)... We are building a product using the Force.com Embedded (OEM) model. For clients with existing salesforce org, we would like to have ...
10
votes
1answer
671 views

Winter 16 canvas iframe behavior change

We have Winter 16 preview sandbox and can see that Canvas App is rendered now as iframe in iframe (there is outer and inner iframes now). Before this release there was just one iframe. For now I'm not ...
9
votes
1answer
532 views

Canvas app - verify signed request

i am following the canvas app documentation to verify a signed request before using the parameters i am passing in the canvas app request. The canvas app is embedding a third party app in salesforce. ...
9
votes
1answer
2k views

Passing data from Canvas App to VF page

I am struggling to understand how pass a value back to a VF page that contains a Canvas App. If I understand the documentation correctly I need to create a publish event in my app, so I have the ...
9
votes
1answer
68 views

Position of select options in connected canvas app

I have a connected app that is being used to iframe in an external web application as a apex:CanvasApp. This works well, except something has started occurring with HTML select controls in Chrome 67....
8
votes
2answers
2k views

How to fire an event from a canvas app, to a lightning component

I have a canvas app thats running inside a lightning component. There are tons of articles about how to fire events in every other permutation of lightning, visualforce and canvas, but I can't find a ...
8
votes
2answers
5k views

How to get the customer signature inside salesforce and generate the pdf?

We have a requirement for Customer Sign-up form. We have created a VF Tab and included VF page for creating Customer signup form. In that Customer Signup Form, we have a field to get the Customer ...
8
votes
1answer
347 views

Canvas App (or equivalent) for Lightning Web Components

We are currently using the force:canvasApp lightning component to embed an external site securely into Salesforce. The Spring '19 release is introducing Lightning Web Components as the future of ...
8
votes
1answer
387 views

Default Permitted Users to “Admin approved” in connected Apps with installed Packages

I've built a Canvas App using Signed Requests and therefore I need the Permitted Users option set to "Admin approved" (otherwise Salesforce doesn't send any Signed Request). I've set this option to "...
7
votes
2answers
156 views

How to get Canvas working, need pointer to simple instruction

The Salesforce Canvas Developer Guide states: "Canvas enables you to easily integrate a third-party application in Salesforce". And then it needs more than 100 pages to explain how to do this. OK, ...
7
votes
1answer
468 views

Canvas Implementation

I am trying to integrate a 3rd party web app with my customer portal. There are 5 tabs on my customer portal out of which 2 of them references visualforce pages and the remaining 3 should reference 3 ...
7
votes
2answers
879 views

Multiple connected apps using OAuth

We have a Node.js application whose web page is exposed as a canvas app on Salesforce. This shows the web page on Salesforce and allows users to make visual changes to it (one of our requirements). ...
7
votes
1answer
315 views

Canvas URL and postMessage

I'm trying to determine if this is an unsupported Canvas scenario or if there's something misconfigured in the org or the browser that would otherwise allow it to succeed. For the purpose of ...
6
votes
1answer
6k views

How to specify “Admin Approved” users for a Connected App?

I've created a canvas app as a "Connected App" inside Salesforce, and set the approval to "Admin Approved" so that I can receive a POST signed request - however I cannot actually figure out how to ...
6
votes
1answer
3k views

Canvas inside Lightning

Is it possible to use a Canvas app inside a Lightning app (using a component)? Because to use canvas, we need to use iframe, which can not be used in lightning.
6
votes
1answer
1k views

With Salesforce Canvas, is it possible to call custom web services from the app?

I've spent some time this week playing with Canvas. I've setup an example that uses OAuth to authenticate and authorise the app; it then retrieves a record, and makes an update to the record from the ...
6
votes
1answer
1k views

Using Canvas client-side proxy to access Apex REST API from Visualforce page

Is it possible to use the client-side proxy provided by the Canvas SDK from a canvas app embedded within a Visualforce page to access an Apex REST endpoint? We have a canvas app which calls an Apex ...
6
votes
1answer
663 views

Are external iframes in lightning experience kosher from a security review perspective?

We are looking to embed an external page in lightning experience. I'm trying to understand if a canvas app or an iframe is the recommended approach from a security review perspective for our use-case. ...
6
votes
1answer
1k views

Automatic Resizing of Canvas App in Visualforce Page

I have created a canvas app and am hosting it on Heroku. I then added this app to a Visualforce page, along with the required Salesforce SDK (which is hosted on heroku). Because this app will be used ...
6
votes
0answers
545 views

Control Managed Package Connected App Permission Set from managed code

I'd like to deploy a Canvas Connected App as part of a managed package and be able to dynamically assign users access to it via a Permission Set. The Canvas App is using the Signed Request (Post) ...
5
votes
1answer
2k views

Salesforce Canvas cross-domain issue

I'm doing a PoC with canvas. The connected app is an instance of PeopleSoft. The integration is done but with some difficulties. I'm getting a cross-domain error in the browser when some of the ...
5
votes
2answers
2k views

Expose Lightning App via Sites (and embed via Canvas)

I have a Lightning app, that I would like to embed in another Salesforce org via Canvas Connected App. It's not a problem with Visualforce pages, but Lightning apps are no option in the "Active Site ...
5
votes
1answer
1k views

Canvas App started sending GET instead of POST

I have a canvas app that is setup to use the signed request (POST) access method, and when I test the app via either the tab that it creates or the canvas app previewer it sends my webserver a POST ...
5
votes
1answer
3k views

Canvas App in Lightning Component

I'm trying to port some Visualforce functionality to Lightning and struggling with an embedded canvas application. After some trial and error I have the canvas app displaying, but the number of ...
5
votes
2answers
3k views

Canvas Publish/Subscribe and Javascript

I am trying to hack together a Canvas App so I can understand the Publish/Subscribe Model. I have a VF page in a dev org calling a URL in a SFDC Prod Org (so it has HTPPS) that just displays another ...
5
votes
1answer
2k views

How to capture HTML5 Canvas signature and display it in output label?

I need to capture the customer signature from Html5 Canvas and display it in a Output label. Can anyone please help me out in this? <div data-role="page" id="signatureCaptureHome" style="over-...
5
votes
1answer
384 views

Web-based CTI Adapter issues with Canvas and VisualForce [Now Resolved]

[FYI : The below issue has now been resolved as of Summer 14] I am integrating a web-based CTI Adapter into SF using Canvas and the Open CTI API. Background: The Canvas App contains the end point ...
5
votes
1answer
163 views

Salesforce1 and Spring 14 Features

Do the currently available native Salesforce1 apps contain all the Spring 14 Release features? This URL indicates that they are: http://help.salesforce.com/apex/HTViewSolution?id=000188534 I'm ...
5
votes
0answers
274 views

Hitting error when trying to save HTML5 canvas in VisualForce Page

We have a requirement to open an image attachment in a VisualForce page, the user should be able to draw on the image and those edits should be updated in the attachment on save. So to achieve this, ...
5
votes
0answers
2k views

force:canvasApp in a Lightning Component

I have a simple Lightning Component with a Canvas App embedded in it via the force:canvasApp tag. CanvasTestComponent.cmp <aura:component implements="forceCommunity:availableForAllPageTypes" ...
5
votes
2answers
117 views

Chatter (publisher) canvas app: multisegment feed post?

In my canvas app, I can easily post to a chatter feed in this way: Sfdc.canvas.client.subscribe(sr.client, { name: "publisher.getPayload", onData: function (event) { var post = {}; post....
4
votes
2answers
3k views

How to publish a connected app (the replacement for Remote Access settings)

So I am trying to setup a remote access piece for using OAuth for a rails app. Remote Access in this org seems to have been removed and replaced by the new Connected Apps feature. When I create a ...
4
votes
2answers
2k views

Calling REST API in Canvas with OAuth Webflow (GET)

I am developing a canvas application. For various reasons, I am hosting my application on a static host and use services as back-end. Therefore I am simply using OAuth Webflow (GET) instead of Signed ...
4
votes
1answer
5k views

Error rendering Force.com Canvas application

Unable to find any solution on web related to this issue? I am trying to run Hello World(Quick start - Advance section of Canvas guide) application. Hello World application is running on my local ...
4
votes
1answer
130 views

Tie web server oauth to user session in my canvas app

I'm trying to figure out how to allow my users to login to my app using only Salesforce. I think I want to use the "web server oauth flow" and follow the directions in the solution here: https://...
4
votes
2answers
2k views

Passing recordId as a parameter to force:canvasApp component

I'm needing to create a simple lightning component to surface a canvas app on an account record detail page using the Lightning App Builder. Implementing force:hasRecordId, I want to use v.recordId as ...
4
votes
3answers
1k views

Canvas Signed Request not sending refresh_token

I have a canvas a app that I distribute via a managed package on the AppExchange. The canvas app is configured to post a signed request to my heroku app. I have selected all the oauth scope options: ...
4
votes
1answer
192 views

Canvas app works for multiple organziation

I created a simple canvas app and trying to set it up so that the app works for two organizations. On each organization, I have a page with that canvas app embedded within now. When I set up that ...
4
votes
1answer
598 views

Is it possible to package a Canvas app where the Canvas App URL differs on a per-install basis?

We are currently working creating a managed package which integrates with a third-party service through Canvas. The third-party service has different URLs for different users (similar to how ...
4
votes
1answer
272 views

May someone let me know what kind of license I need?

I was wondering if someone may help me in terms of Salesforce license, I am really puzzle due to there are lot of docs about that even I've talked to sales departament and I think it was worst. Thing ...
4
votes
1answer
776 views

Canvas Signed Request not being processed correctly

I currently have a canvas app deployed across multiple orgs. This app uses signed request to authenticate a user. Along with some visualforce pages. Just this morning the signed request suddenly ...
4
votes
0answers
184 views

Where can I find the available Canvas events that I can subscribe to?

There is an example in Subscribing to Parent Events that shows I can subscribe to onscroll events from the parent window using 'canvas.scroll'. //Subscribe to the parent window onscroll event. Sfdc....
4
votes
0answers
249 views

Canvas app sends GET request instead of POST when API whitelisting is enabled

Cross-Post from developer.salesforce.com We use a connected (canvas) app to integrate a third-party web application in salesforce. We use the the 'signed request' authentication model and it works as ...
4
votes
0answers
526 views

Not use iframe in Canvas App

We have a Canvas App configured as part of a Connected App, which is wired to a javascript frontend application. The frontend JS app has been hosted in AWS servers. The Connected App has been ...
4
votes
0answers
541 views

ApplicationName is changing when I deploy my released managed package

I have a simple visualforce page which loads a canvas app, the code looks like this: <apex:canvasApp applicationName="AppName" namespacePrefix="namespace_prefix" height="1080px" width="...
3
votes
1answer
231 views

What are the differences between a Lightning Container and a Canvas App?

Both lightning:container and Canvas Apps (which themselves can be embedded into Lightning components using force:canvasApp) seem to be doing similar things. Both of them allow you to embed external ...
3
votes
1answer
956 views

Canvas App Resize limiting to 2000px height

In our canvas App, we have the following code, where sfsrjson is the signed request JSON: <script type="text/javascript"> Sfdc.canvas(function() { Sfdc.canvas.client.resize(sfsrjson....
3
votes
1answer
851 views

Canvas VF page can not find Connected app

I have a simple VF page to render canvas app. While rendering I am getting error - ops, there was an error rendering Force.com Canvas application [MyAppName]. Force.com Canvas can not locate an ...
3
votes
1answer
2k views

Custom URL in Canvas App

I am trying to call dynamic URLs of an external app(having same domain but different paths basis clicking on links inside salesforce) in Salesforce using Canvas app. How can this be implemented? ...