FeedAttachment

Represents an attachment to a feed item, such as a file attachment or a link. Use FeedAttachment to add various attachments to one feed item. This object is available in API version 36.0 and later.

Supported Calls

create()delete()describeSObjects()query()retrieve()update()upsert()

Special Access Rules

Fields

Field Name Details
FeedEntityId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the associated feed entity that contains this attachment. Currently, the only feed entity supported is FeedItem.
RecordId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort
Description
The ID of the record that this feed attachment contains. For inline images, RecordId is a ContentDocument ID. For content attachments, RecordId is a ContentVersion ID.
Title
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The title of this feed attachment. When Type is Link, Title value is the label for the attachment link. Otherwise, Title value isn’t used.
Type
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort
Description
The type of this feed attachment. Valid values are:
  • Content—A content attachment.
  • FeedEntityA feed entity, for example, a post that is shared. Available in API version 39 and later in Lightning Experience.
  • InlineImage—An inline image. The system creates an inline image attachment when an image is added to the body of the associated FeedItem. You can’t add an inline image directly by using FeedAttachment.
  • Link—A link.
Value
Type
string
Properties
Create, Filter, Nillable, Sort, Update
Description
The string value of this FeedAttachment. This field is optional. If the feed attachment is a Link FeedAttachment, the value is the link URL string.

Usage