---
schema_version: "1"
id: 856505aa6c7302ca08489c1987aef2fffccaf26ea8a043dea01be724d7d6b731
title: ConnectApi.LinkAttachment
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_output_link_attachment.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_link_attachment.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: fc614005e7280b726ffb51ebe6cb8d247d4acc9180576440354851dff76cb959
description: Link attached to a feed item.
---
# ConnectApi.LinkAttachment

Link attached to a feed item.

![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.LinkCapability](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_link_capability.htm "If a feed element has this capability, it has a link.") 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.").

| Name | Type | Description | Available Version |
| --- | --- | --- | --- |
| title | String | Title given to the link if available, otherwise, null. | 28.0–31.0 |
| url | String | The link URL. | 28.0–31.0 |