Newer Version Available
Application
The Application object is a JSON-formatted object returned by the signed request in the Context object. The Application object contains specific canvas app information obtained after you’ve added your app as a connected app in Salesforce from Setup by entering Connected Apps in the Quick Find box, then selecting Connected Apps.
| Field | Description |
|---|---|
| applicationId | The ID of the canvas app. |
| authType | The access method of the canvas app. You specify this value when you expose the canvas app by creating a connected app. |
| canvasUrl | The URL of the canvas app, for example: http://instance.salesforce.com:8080/canvas_app_path/canvas_app.jsp. |
| developerName | The internal name of the canvas app. You specify this value in the API Name field when you expose the canvas app by creating a connected app. |
| name | The name of the canvas app. |
| namespace | The Salesforce namespace prefix associated with the canvas app. |
| options | An array that can contain one, two, or three of these values:
|
| referenceId | The unique ID of the canvas app definition. Used internally. |
| version | The version of the canvas app. This value changes after you update and re-publish a canvas app in an organization. |
The following code snippet shows an example of the Application object.
1"application":
2{
3 "applicationId":"06Px000000003ed",
4 "authType":"SIGNED_REQUEST",
5 "canvasUrl":"http://instance.salesforce.com:8080/canvas_app_path/canvas_app.jsp",
6 "developerName":"my_java_app",
7 "isInstalledPersonalApp": false,
8 "name":"My Java App",
9 "namespace":"org_namespace",
10 "options":["HideShare", "HideHeader"],
11 "referenceId":"09HD00000000AUM",
12 "samlInitiationMethod":"None",
13 "version":"1.0.0"
14}