• Dev SFDC 15
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 2
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
Hi all. We started noticing a few days ago (10/20/2017) that a couple of Visualforce pages we have that make use of the "apex:canvasApp" component are not working because the option for entityFields="*" does not appear to be working correctly. Can anyone confirm this or know how to work around this? Or if there has been a change to the Salesforce platform to cause this? Documentation on the canvas framework for Version 41.0, Winter '18 show that this should still work.

We have a simple Visualforce page that looks like:
<apex:page standardController="Account">
<apex:canvasApp namespacePrefix="mynamespace" applicationName="MyAppName" maxHeight="infinite" width="100%" entityFields="*" />
</apex:page>
which we then include on the Account layout.

In particular, we are using entityFields="*" so we send all fields on the Account record to us in the canvas request. Unfortunately, the "record" field in the canvas request is empty (context.environment.record == {}). We are able to reproduce this in our developer edition org with another canvas app, and we are able to find a workaround in development by specifying a specific list of fields -- e.g. entityFields="Id,Name,Website". However, this is not okay for our package since (a) we want all fields and (b) changing this would require a new package.

Given what we are seeing, we think this is an issue in the Salesforce platform and do not know how to proceed. Has anyone else seen this issue or know if something has changed in the Salesforce platform that would cause this issue?

Thank you in advance!
Hi all. We started noticing a few days ago (10/20/2017) that a couple of Visualforce pages we have that make use of the "apex:canvasApp" component are not working because the option for entityFields="*" does not appear to be working correctly. Can anyone confirm this or know how to work around this? Or if there has been a change to the Salesforce platform to cause this? Documentation on the canvas framework for Version 41.0, Winter '18 show that this should still work.

We have a simple Visualforce page that looks like:
<apex:page standardController="Account">
<apex:canvasApp namespacePrefix="mynamespace" applicationName="MyAppName" maxHeight="infinite" width="100%" entityFields="*" />
</apex:page>
which we then include on the Account layout.

In particular, we are using entityFields="*" so we send all fields on the Account record to us in the canvas request. Unfortunately, the "record" field in the canvas request is empty (context.environment.record == {}). We are able to reproduce this in our developer edition org with another canvas app, and we are able to find a workaround in development by specifying a specific list of fields -- e.g. entityFields="Id,Name,Website". However, this is not okay for our package since (a) we want all fields and (b) changing this would require a new package.

Given what we are seeing, we think this is an issue in the Salesforce platform and do not know how to proceed. Has anyone else seen this issue or know if something has changed in the Salesforce platform that would cause this issue?

Thank you in advance!