Newer Version Available

This content describes an older version of this product. View Latest

ServiceTerritoryFeed

Represents a single feed item on a service territory record detail page. This object is available in API version 38.0 and later.

A service territory feed shows changes to tracked fields on a service territory record. It also shows posts and comments about the record. It’s a useful way to stay up to date with changes made to service territories in Salesforce.

Supported Calls

delete()getDeleted()getUpdated()query()retrieve()

Special Access Rules

Field Service Lightning must be enabled in your organization, and 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 Operating Hours object
  • “Moderate Chatter”

Fields

Field Name Details
Body
Type
textarea
Properties
Nillable, Sort
Description
The message that appears in the feed. Required when Type is TextPost. Optional when Type is ContentPost orLinkPost.
CommentCount
Type
int
Properties
Filter, Group, Sort
Description
The number of comments associated with this feed item.
InsertedById
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the user who added this object to the feed. For example, if an application migrates posts and comments from another application into a feed, the value is set to the ID of the logged-in user.
IsRichText
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
true indicates that the body of the feed contains rich text. false indicates that the post is rendered as plain text.
LikeCount
Type
int
Properties
Filter, Group, Sort
Description
The number of feed likes associated with this feed item.
LinkUrl
Type
url
Properties
Nillable, Sort
Description
The URL of a link post.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the service territory record 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 content post. This field is null for all posts, except ContentPost.
Title
Type
string
Properties
Group, Nillable, Sort
Description
The title of the feed item. When the Type is LinkPost, the Link URL is the URL, and this field is the link name.
Type
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description

The type of feed item.