Newer Version Available

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

WorkOrderFeed

Represents a single feed item on a work order record detail page. This object is available in API version 36.0 and later.

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

Supported Calls

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

Special Access Rules

Work orders 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 Work Order object
  • “Moderate Chatter”

    Users with the “Moderate Chatter” permission can delete only the feed items and comments they see.

    Note

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.
ConnectionId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID of the PartnerNetworkConnection. Available if Salesforce to Salesforce is enabled for your organization. When a PartnerNetworkConnection modifies a record that is tracked, the CreatedBy field contains the ID of the system administrator.
ContentData
Type
base64
Properties
Nillable
Description
Available in API version 36.0 and earlier only. Required if Type is ContentPost. Encoded file data in any format, and can’t be 0 bytes. Setting this field automatically sets Type to ContentPost.
ContentDescription
Type
textarea
Properties
Nillable, Sort
Description
Available in API version 36.0 and earlier only. The description of the file specified in ContentData.
ContentFileName
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The name of the file to upload to the feed. Required if Type is ContentPost. Setting this field sets Type to ContentPost.
ContentSize
Type
int
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. Read only. The size of the file uploaded to the feed in bytes. Determined during insert.
ContentType
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. Read only. The MIME type of the file uploaded to the feed. Determined during insert.
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 work order 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.