---
schema_version: "1"
id: ff2ac49d062e0ee992b6793209a6cb5d050872fbd728d70c1169ce50e8132968
title: ConnectApi.CanvasTemplateAttachment
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_output_canvas_template.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_canvas_template.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: d710b81cfe82ffee48d8e2f5d5d170a6ad65dcbddf792107a42e2ad70887b761
description: Attachments in feed items with type CanvasPost.
---
# ConnectApi.CanvasTemplateAttachment

Attachments in feed items with type CanvasPost.

![Important](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/images/icon_note_important.png)

#### Important

This class isn’t available in version 32.0 and later. In version 32.0 and later, [ConnectApi.CanvasCapability](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_canvas_capability.htm "If a feed element has this capability, it renders a canvas app.") is used.

Subclass of [ConnectApi.FeedItemAttachment](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_feed_item_attachment.htm "Feed item attachment.").

| Property | Type | Description | Available Version |
| --- | --- | --- | --- |
| description | String | Optional. Description of the canvas app. The maximum length of this field is 500 characters. | 29.0–31.0 |
| developerName | String | Specifies the developer name (API name) of the canvas app. | 29.0–31.0 |
| height | String | Optional. The height of the canvas app in pixels. Default height is 200 pixels. | 29.0–31.0 |
| icon | [ConnectApi.Icon](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_icon.htm "Icon.") | The canvas app icon. | 29.0–31.0 |
| namespacePrefix | String | Optional. The namespace prefix of the Developer Edition organization in which the canvas app was created. | 29.0–31.0 |
| parameters | String | Optional. Parameters passed to the canvas app in JSON format. Example: {'isUpdated'='true'} | 29.0–31.0 |
| thumbnailUrl | String | Optional. A URL to a thumbnail image for the canvas app. Maximum dimensions are 120x120 pixels. | 29.0–31.0 |
| title | String | Specifies the title of the link used to call the canvas app. | 29.0–31.0 |