The following are methods for EnvironmentContext.
-
addEntityField(fieldName)
Adds a field to the list of object fields that are returned in the signed request Record object when the component appears on a Visualforce page that’s placed on an object. -
addEntityFields(fieldNames)
Adds a set of fields to the list of object fields that are returned in the signed request Record object when the component appears on a Visualforce page that’s placed on an object. -
getDisplayLocation()
Retrieves the display location where the canvas app is being called from. For example, a value of Visualforce page. -
getEntityFields()
Retrieves the list of object fields that are returned in the signed request Record object when the component appears on a Visualforce page that’s placed on an object. -
getLocationUrl()
Retrieves the location URL of the canvas app. -
getParametersAsJSON()
Retrieves the current custom parameters for the canvas app. Parameters are returned as a JSON string. -
getSublocation()
Retrieves the display sublocation where the canvas app is being called from. -
setParametersAsJSON(jsonString)
Sets the custom parameters for the canvas app.