FeedPost

FeedPost represents the following types of changes in a NewsFeed, UserProfileFeed, or record feed, such as AccountFeed: status updates, text posts, link posts, and content posts. This object is available in API version 18.0 and later. Do not use this object as of version 21.0, use FeedItem instead. FeedPost will be removed in a future release.

Supported Calls

create(), delete(), describeSObjects(), search()

Special Access Rules

You can delete a feed item only if you created it, or if you have the any of these permissions:
  • “Modify All Data”
  • “Moderate Chatter”
    Note
    Because it does not include “View All Data”, users with the “Moderate Chatter” permission are able to delete only the feed items and comments they are able to see.
Only users with the “Modify All Data” permission can delete a FeedItem of TypeTrackedChange.

If the logged-in user has the Insert System Field Values for Chatter Feeds user permission, the create field property is available on CreatedById and CreatedDate system fields for this object. This allows the logged-in user to set these fields to the original post author and creation date upon migration instead of accepting the system field value when migrated, which would be the logged-in user and the date the migration was performed, respectively. The fields can't be updated after migration.

Fields

Field Details
Body
Type
string
Properties
Create, Filter, Nillable, Sort
Description
The content of the FeedPost. Required when Type is TextPost. Optional when Type is ContentPost or LinkPost. This is the message that appears in the feed.
ContentData
Type
base64
Properties
Create, Nillable
Description
The file uploaded to the feed. Required if Type is ContentPost. Encoded file data. Cannot be 0 bytes. Can be any format. Setting this field automatically sets Type to ContentPost.
ContentDescription
Type
string
Properties
Create, Nillable, Sort
Description
The description of the file specified in ContentData.
ContentFileName
Type
string
Properties
Create, Group, Nillable, Sort
Description
The file uploaded to the feed. Required if Type is ContentPost. The name of the file uploaded to the feed. Setting ContentFileName automatically sets Type to ContentPost.
ContentSize
Type
int
Properties
Group, Nillable, Sort
Description
Read only. Automatically determined during insert. The size of the file (in bytes) uploaded to the feed.
ContentType
Type
string
Properties
Group, Nillable, Sort
Description
Read only. Automatically determined during insert. The MIME type of the file uploaded to the feed.
FeedItemId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the feed containing the FeedPost.
InsertedById
Type
reference
Properties
Filter, Group, Sort
Description
ID of the user who added this object to the feed. For example, if a client application migrates multiple posts and comments from another application into a feed, then InsertedById is set to the ID of the logged-in user.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the record has been moved to the Recycle Bin (true) or not (false). This is a standard system field.
LinkUrl
Type
url
Properties
Create, Filter, Nillable, Sort
Description
The URL of a LinkPost.
ParentId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the object type to which the FeedPost is related. For example, set this field to a UserId to post to someone’s profile feed, or an AccountId to post to a specific account.
Title
Type
string
Properties
Create, Filter, Group, Nillable, Sort
Description
The title of the FeedPost. When the Type is LinkPost, the Body is the URL and the Title is the label for the link.
Type
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Restricted picklist, Sort
Description
The type of FeedPost:
  • UserStatus—automatically generated when a user updates their status
  • TrackedChange—ignore
  • TextPost—a direct text entry on a feed
  • LinkPost—a URL posting on a feed
  • ContentPost—an uploaded file on a feed
Note
If you set Type to ContentPost, you must specify ContentData and ContentFileName.

Usage

© Copyright 2000–2012 salesforce.com, inc. All rights reserved.
Various trademarks held by their respective owners.