Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Hot answers tagged

15 votes
Accepted

How to specify "Admin Approved" users for a Connected App?

http://www.salesforce.com/us/developer/docs/platform_connect/Content/quick_start_config_who_can_access_canvas_app.htm In your connected application you will see related list where you can configure ...
user avatar
12 votes
Accepted

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

Here is a start. I'll try and flesh it out as time permits. In the Org that will be the target of the Canvas App Create an Apex Class to be the Controller. This controller will handle the processing ...
user avatar
12 votes
Accepted

Salesforce Canvas cross-domain issue

This is a long answer that attempts to explain exactly what's going on here, and how HTML5 and the Force.com Canvas SDK allow safe cross-origin access. It may be that your issue has no solution, but ...
user avatar
  • 16.1k
9 votes
Accepted

Canvas inside Lightning

Actually that is not correct - with Winter '16 we not only fixed the issues with Canvas and Lightning Experience/S1 (the way canvas was originally integrated into these applications actually violated ...
user avatar
  • 9,974
9 votes

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

The wiring to do this is mostly there, but lightning apps don't have access to Sfdc.canvas at present, it seems. If they did have access to Sfdc.canvas then this would work. You can send a message ...
user avatar
  • 203
9 votes
Accepted

Canvas App (or equivalent) for Lightning Web Components

Aura Components are not going to be deprecated any time soon . I raised this question on the twitter to the PM for canvas and LWC and here is the response from him , please check screenshot below ...
user avatar
8 votes
Accepted

Canvas Implementation

So there are a couple of ways to do this: Create 3 canvas apps in your org. Each of these apps would have a different Canvas URL which would point to the different pages in your web app. For ...
user avatar
  • 416
7 votes
Accepted

Canvas App started sending GET instead of POST

See Signed Request Authentication. Has: a change been made to the Permitted Users field from "Admin approved users are pre-authorized" to "All users may self-authorize", or when using "All users ...
user avatar
7 votes
Accepted

Expose Lightning App via Sites (and embed via Canvas)

Embedding a Lightning .app is totally possible using any iframe based approach including Canvas. This is embedding a single page app though which is a very course grained approach which might be fine ...
user avatar
  • 9,974
7 votes
Accepted

Canvas app - verify signed request

Here is a step-by-step click path to create a Salesforce Canvas App that uses a POSTed Signed Request to a Visualforce Page with an Apex Controller (and the Apex Controller successfully validates the ...
user avatar
6 votes
Accepted

Passing data from Canvas App to VF page

I got it working. The app side is a .NET site where I validate the signedRequest and save the Json to the hidden variable. My problem was that I was using the signedRequest and not the decoded Json. ...
user avatar
  • 173
6 votes

How to get Canvas working, need pointer to simple instruction

For a simple use-case like that, I would just use a Web Tab. Canvas is more than you need, for sure. When it comes time to pass parameters out to the 3rd-party site, you'll need to change it up a ...
user avatar
5 votes
Accepted

Creating canvas connected app in Salesforce

You will use apex:canvasApp tag on your visualforce markup <apex:page controller="JSONGeneratorSample"> <apex:canvasApp developerName="mycanvas" parameters="{!generateJSON}" /> </...
user avatar
5 votes
Accepted

Canvas App in Lightning Component

I had the same problem in a Summer 16 pre-release org. I had a Lightning Component in a Visualforce page. The Lightning Component contained the force:canvasApp component and demonstrated the same ...
user avatar
5 votes

Canvas VF page can not find Connected app

I could resolve it. I needed to enable OAuth for connected app. I found it weird that I need to enable OAuth even if I do not need it. But well it worked.
user avatar
5 votes
Accepted

How to get Canvas working, need pointer to simple instruction

These are the steps I used to create a Canvas App as part of the Can I embed a Salesforce app, via Canvas, in another org? question. This was pre-Lightning UI, but it hopefully gives you more direct ...
user avatar
5 votes
Accepted

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

The lightning:container uses a static resource hosted in Salesforce, while force:canvasApp allows you to embed any site that uses the Canvas API. The difference is location. The one that you use is ...
user avatar
  • 430k
4 votes
Accepted

Is that possible to send and receive data between Canvas app and Visualforce page?

Canvas apps allow you to interact with your embedded app via the publish (pushing data from your page to you app) and subscribe (receiving data from your app) javascript functions. If you needed the ...
user avatar
  • 14.5k
4 votes

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

I want to explain this in a different way. Some of the difference between the two is lying within the settings for canvas app as below. As soon as you click that little checkbox called 'Canvas' within ...
user avatar
4 votes
Accepted

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

As far as I'm aware, there's no way to specify this in your package at this time. You will need to include that in your documentation, and possibly also program your app to notify users that they need ...
user avatar
  • 430k
4 votes
Accepted

Canvas App Resize limiting to 2000px height

I just ran into this problem. The default maxHeight of a canvas app is 2000px. Apparenlty, you can't go beyond the maxHeight even when using the canvas sdk. You have to explicitly set your maxHeight ...
user avatar
  • 56
4 votes
Accepted

Click To Dial fails after calling publish() in publisher.js

The issue seems to be due to the data in the MessageEvent being sent by the Salesforce InteractionFramework. The data in a successful MessageEvent should look something like this: interactionApi/...
user avatar
4 votes
Accepted

Canvas Signed Request vs OAuth flow

Signed request is completely secure while oauth flow is provided in case you want to do two way oauth and also alert the user that he is allowing access to the resources . When you do an oauth flow ,...
user avatar
4 votes

Tie web server oauth to user session in my canvas app

This question is, effectively, asking the difference between authorization and authentication. OAuth 2.0 is an authorization standard. The access token you receive from the server authorizes you to ...
user avatar
4 votes

Send custom data (100k) to a Canvas URL

In the force canvas app there is a attribute parameters which you can use to send parameters as name value pair. documentation here Object representation of parameters passed to the canvas app. ...
user avatar
  • 7,543
3 votes
Accepted

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

I have confirmed this is a problem. However there is a workaround Sfdc.canvas.client.ajax('/services/proxy', { client : sr.client, method: 'GET', contentType: "application/...
user avatar
3 votes
Accepted

"Parameters or Publish" which method best suits to pass parameters to a canvas app from a visualforce page?

The Canvas Javascript publish is an event. You can trigger it multiple times and vary the payload each time. Your canvas app needs to subscribe to these events to receive them. You can also publish ...
user avatar
3 votes

Calling REST API in Canvas with OAuth Webflow (GET)

The only thing I would add to the above is that I also found it tricky to understand how to get the OAuth flow to work in the client. The last step is what to do on the callback URL. For me, this is ...
user avatar
3 votes

Calling REST API in Canvas with OAuth Webflow (GET)

Sorry for the delay in answering. You can do this today with the SDK. There are examples in the SDK on how to use the OAuth method. Essentially, you use canvas to establish the OAuth authentication,...
user avatar
  • 416
3 votes
Accepted

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

In the end we didn't manage to come up with a solution for this on our own and ended up getting in touch with Jay Hurst (Senior Product Manager at SFDC). I've incorporated his comments with some ...
user avatar
  • 13.2k

Only top scored, non community-wiki answers of a minimum length are eligible