No Results
Search Tips:
- Please consider misspellings
- Try different search keywords
Newer Version Available
Environment
The Environment object is a JSON-formatted object containing context information about the canvas app environment. This object contains the Dimensions object, the Version object, and parameters (if there are any) in the Parameters object.
| Field | Description |
|---|---|
| displayLocation | The location in the application where the canvas app is currently
being called from. Valid values are:
|
| locationUrl | The URL of the page in Salesforce where the user accesses the canvas app. For example, if users access your canvas app by clicking a link on the Chatter tab, this field contains the URL of the Chatter tab. |
| uiTheme | The default theme for the context organization. |
The following code snippet shows an example of the Environment object.
1"environment":
2{
3 "parameters":{},
4 "dimensions":
5 {
6 "height":"900px",
7 "width":"800px",
8 "maxHeight":"2000px",
9 "maxWidth":"1000px"
10
11 },
12 "displayLocation":"Chatter",
13 "locationUrl":"http://www.salesforce.com/some/path/index.html",
14 "uiTheme":"Theme3",
15 "version":
16 {
17 "api":"30.0",
18 "season":"WINTER"
19 }
20}