EntitlementFeed

Represents a single feed item in the feed displayed on the detail page for an entitlement.

An entitlement feed shows recent changes to an entitlement record for any fields that are tracked in feeds, as well as comments and posts about the record. It's a useful way to stay up-to-date with changes to entitlements. This object is available in API version 23.0 and later.

Supported Calls

delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()

Special Access Rules

You can delete all feed items you created. To delete feed items you didn’t create, you must have one of these permissions:
  • “Modify All Data”
  • “Modify All” on the Entitlement object
  • “Moderate Chatter”
    Note
    Users with the “Moderate Chatter” permission can delete only the feed items and comments they see.

Fields

Field Name Details
Body
Type
textarea
Properties
Nillable, Sort
Description

The content of the EntitlementFeed. Required when Type is TextPost. Optional when Type is ContentPost or LinkPost. This is the message that appears in the feed.

CommentCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedComments associated with this feed item.
ConnectionId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
When a PartnerNetworkConnection makes a change to a record that is tracked, the CreatedBy field contains the ID of the system administrator while the ConnectionId contains the ID of the PartnerNetworkConnection that made the change. Available if Salesforce to Salesforce is enabled for your organization.
ContentData
Type
base64
Properties
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
textarea
Properties
Nillable, Sort
Description

The description of the file specified in ContentData.

ContentFileName
Type
string
Properties
Group, Nillable, Sort
Description

The file uploaded to the feed. Required if Type is ContentPost. 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.
InsertedById
Type
reference
Properties
Group, Nillable, Sort
Description

The 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, InsertedById is set to the ID of the logged-in user.

LastModifiedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
Description
This is a standard system field.

When a feed item is created, LastModifiedDate is the same as CreatedDate. If a FeedComment is inserted on the feed item, then LastModifiedDate becomes the CreatedDate for the FeedComment. Deleting the FeedComment does not change the LastModifiedDate.

Ordering by LastModifiedDate DESC sorts the feed by both the most recent feed item or comment.

LikeCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedLikes associated with this feed item.
LinkUrl
Type
url
Properties
Nillable, Sort
Description

The URL of the LinkPost.

NetworkScope
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort
Description
Specifies whether this feed item is available in the default community, a specific community, or all communities. This field is available in API version 26.0 and later, if Salesforce Communities is enabled for your organization.
NetworkScope can have the following values:
  • NetworkId—The ID of the community in which the FeedItem is available. If left empty, the feed item is only available in the default community.
  • AllNetworks—The feed item is available in all communities.
Note the following exceptions for NetworkScope:
  • Only feed items with a CollaborationGroup or User parent can set a NetworkId or a null value for NetworkScope.
  • For feed items with a record parent, users can set NetworkScope only to AllNetworks.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description

ID of the entitlement record that is tracked in the feed. The feed is displayed on the detail page for this record.

RelatedRecordId
Type
reference
Properties
Group, Nillable, Sort
Description

ID of the ContentVersion object associated with a ContentPost. This field is null for all posts except ContentPost. For example, set this field to an existing ContentVersion and post it to a feed as an EntitlementFeed object of TypeContentPost.

Title
Type
string
Properties
Group, Nillable, Sort
Description

The title of the EntitlementFeed. When the Type is LinkPost, the LinkUrl is the URL and this field is the link name.

Type
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of EntitlementFeed item:
  • ActivityEvent—generated event when a user or the API adds a Task associated with a feed-enabled parent record (excluding email tasks on cases). Also occurs when a user or the API adds or updates a Task or Event associated with a case record (excluding email and call logging).

    For a recurring Task with CaseFeed disabled, one event is generated for the series only. For a recurring Task with CaseFeed enabled, events are generated for the series and each occurrence.

  • ApprovalPost—automatically generated by a feed query on an approval item
  • CanvasPost—a canvas app posting on a feed
  • CollaborationGroupCreated—automatically generated post on a user’s feed when the user creates a public group
  • CollaborationGroupUnarchived—automatically generated post on a group’s feed when an archived group is activated. Do not use.
  • ContentPost—an uploaded file on a feed
  • DashboardComponentSnapshot—a posting of a dashboard snapshot on a feed.
  • LinkPost—a URL posting on a feed
  • PollPost—a poll posted on a feed
  • TextPost—a direct text entry on a feed
  • TrackedChange—a change or group of changes to a tracked field
  • UserStatus—automatically generated when a user adds a post
The following values appear in the Type picklist for all feed objects but apply only to CaseFeed:
  • AttachArticleEvent—generated event when a user attaches an article to a case
  • CallLogPost—generated event when a user logs a call for a case through the user interface. This event is also generated by CTI calls.
  • CaseCommentPost—generated event when a user adds a case comment for a case object
  • ChangeStatusPost—generated event when a user changes the status of a case
  • EmailMessageEvent—generated event when an email related to a case object is sent or received
Visibility
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort
Description
Specifies whether this feed item is available to all users or internal users only. This field is available in API version 26.0 and later, if Salesforce Communities is enabled for your organization.
Visibility can have the following values:
  • AllUsers—The feed item is available to all users who have permission to see the feed item.
  • InternalUsers—The feed item is available to internal users only.
Note the following exceptions for Visibility:
  • For record posts, Visibility is set to InternalUsers for all internal users by default.
  • External users can set Visibility only to AllUsers.
  • On user and group posts, only internal users can set Visibility to InternalUsers.

Usage

Use this object to track changes for an entitlement record.

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