# Record

The Record object is a JSON-formatted object that contains information about the object on which the canvas app appears. This could be a standard object like `Account` or a custom object like `Warehouse__c`. If the canvas app doesn’t appear on an object page or in the publisher or feed associated with an object, then the Record object is empty.

This object contains the [Attributes](/docs/platform/canvas-framework/guide/attributes-object.md) object.

| Field | Description                                                                                                                   |
| ----- | ----------------------------------------------------------------------------------------------------------------------------- |
| `Id`  | The ID of the related object. For example, if the canvas app appears on an Account page, this field contains the `AccountId`. |

If the canvas app appears on a Visualforce page through use of the `<apex:canvasApp>` component, and that Visualforce page is associated with an object (placed on the page layout, for example), you can use the `entityFields` attribute on the component to return specific fields or all fields from the related object.

The following code snippet shows an example of the Record object returned from a canvas app that appears on an Account page. In this example, the Phone, Fax, and BillingCity fields were specified in the `entityFields` attribute.

```nolang
"record":{
    "attributes":{
        "type":"Account",
        "url":"/services/data/v68.0/sobjects/Account/001xx000003DGWiAAO"
    },
        "Id":"001xx000003DGWiAAO",
        "Phone":"(555) 555-5555",
        "Fax":"(555) 555-5555",
        "BillingCity":"Seattle"
    }
```

- **[Attributes](/docs/platform/canvas-framework/guide/attributes-object.md)**

- **[Record Object Examples](/docs/platform/canvas-framework/guide/record-object-examples.md)**

  These code examples demonstrate how the Record object contains different information depending on whether your canvas app appears in the publisher or the feed.

**See Also**

- [Environment](/docs/platform/canvas-framework/guide/environment-object.md)
- [Attributes](/docs/platform/canvas-framework/guide/attributes-object.md)
- [Record Object Examples](/docs/platform/canvas-framework/guide/record-object-examples.md)
- [Returning Fields in the Record Object](/docs/platform/canvas-framework/guide/canvas-app-vf-component-record-fields.md)
