Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

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/v67.0/sobjects/Account/001xx000003DGWiAAO"
5    },
6    "Id":"001xx000003DGWiAAO"
7}