Newer Version Available
Attributes
The Attributes object is a JSON-formatted object that contains information about the object on which the canvas app appears.
| Field | Description |
|---|---|
| type | The object that the canvas app is associated with. This value
could be a standard object like Account or a custom object like Warehouse__c. If the canvas app appears in the publisher, then the type is the name of the associated object. For example, CollaborationGroup or Account. If the canvas app appears in a user feed or the feed associated with an object, then the type is FeedItem. |
| url | The URL of the associated object. The format of the URL is the same as the REST API resource for the given record. |
The following code snippet shows an example of the Attributes object.
1"record":{
2 "attributes":{
3 "type":"Account",
4 "url":"/services/data/v46.0/sobjects/Account/001xx000003DGWiAAO"
5 },
6 "Id":"001xx000003DGWiAAO"
7}