---
schema_version: "1"
id: 295e0e881362d7dce555c912421288560236b2cb78775d7acb5236a1bd3964ca
title: ConnectApi.BasicTemplateAttachment
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_output_basic_template.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_basic_template.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: c0916b5e9a3b6ef744d1125bcb3ae284a543346e850161e8edcf797e2e4b898f
description: Attachments in feed items with type BasicTemplate.
---
# ConnectApi.BasicTemplateAttachment

Attachments in feed items with type BasicTemplate.

![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.EnhancedLinkCapability](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_enhanced_link_capability.htm#apex_connectapi_output_enhanced_link_capability "If a feed element has this capability, it has a link that may contain supplemental information like an icon, a title, and a description.") 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 | An optional description with a 500 character limit. | 28.0–31.0 |
| icon | [ConnectApi.Icon](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_icon.htm "Icon.") | An optional icon. | 28.0–31.0 |
| linkRecordId | String | If linkURL refers to a Salesforce record, linkRecordId contains the ID of the record. | 28.0–31.0 |
| linkUrl | String | An optional URL to a detail page if there is more content that can’t be displayed inline. Do not specify linkUrl unless you specify a title. | 28.0–31.0 |
| title | String | An optional title to the detail page. If linkUrl is specified, the title links to linkUrl. | 28.0–31.0 |