New and Changed Chatter in Apex Output Classes

Chatter Feeds

ConnectApi.AbstractExtensionInformation (Pilot)
This new output class is a superclass of ConnectApi.LightningExtensionInformation. It has one property.
  • extensionInformationType—Specifies the information type of the extension.
ConnectApi.Alternative (Pilot)
This new output class has these properties.
  • textRepresentation—Text representation of the extension.
  • thumbnailUrl—Thumbnail URL for the extension.
  • title—Title of the extension.
ConnectApi.DirectMessageCapability
This output class has these new properties.
  • memberChanges—Member activities of the direct message, with the most recent activity first.
  • originalMembers—Original members of the direct message.
ConnectApi.DirectMessageMemberActivity
This new output class has these properties.
  • activityDate—Direct message member activity date.
  • actor—User who changed the direct message membership.
  • membersAdded—Members added to the direct message as part of the activity.
  • membersRemoved—Members removed from the direct message as part of the activity.
ConnectApi.DirectMessageMemberActivityPage
This new output class has these properties.
  • activities—Collection of direct message member activities.
  • currentPageToken—Token identifying the current page.
  • currentPageUrl—Chatter REST API URL identifying the current page.
  • nextPageToken—Token identifying the next page, or null if there isn’t a next page.
  • nextPageUrl—Chatter REST API URL identifying the next page, or null if there isn’t a next page. Check whether this value is null before getting another page. If a page doesn’t exist, a ConnectApi.NotFoundException error is returned.
ConnectApi.Extension (Pilot)
This new output class has these properties.
  • alternativeRepresentation—Alternative representation of the extension.
  • extensionId—ID of the extension.
  • payload—Payload associated with the extension.
  • payloadVersion—Payload version that identifies the structure of the payload associated with the extension.
ConnectApi.ExtensionDefinition (Pilot)
This new output class has these properties.
  • canAccess—Indicates whether users can access the extension when it’s associated with a feed element.
  • canCreate—Indicates whether users can create a feed element with the extension in the org.
  • createdDate—Date when the extension was created.
  • description—Description of the extension.
  • iconUrl—URL to the icon for the extension.
  • id—ID of the extension.
  • informationCollection—Collection of extension information.
  • isEnabledInCommunity—Indicates whether the extension is enabled in communities.
  • isEnabledInLightningPublisher—Indicates whether the extension is enabled in the Lightning publisher.
  • name—Name of the extension.
ConnectApi.ExtensionDefinitions (Pilot)
This new output class has these properties.
  • currentPageToken—Token identifying the current page.
  • currentPageUrl—Chatter REST API URL identifying the current page.
  • extensionDefinitions—Collection of extension definitions.
  • nextPageToken—Token identifying the next page, or null if there isn’t a next page.
  • nextPageUrl—Chatter REST API URL identifying the next page, or null if there isn’t a next page. Check whether this value is null before getting another page. If a page doesn’t exist, a ConnectApi.NotFoundException error is returned.
  • total—Total number of extensions returned.
ConnectApi.ExtensionsCapability (Pilot)
This new output class is a subclass of ConnectApi.FeedElementCapability. It has one property.
  • items—List of extensions associated with the feed element.
ConnectApi.Feed
This output class has these new properties.
  • feedElements—Page of feed elements for the feed specified in redirectedFeedType. Otherwise, null.
  • redirectedFeedType—Specifies which feed is returned if pageSize is specified. Otherwise, null.
ConnectApi.FeedElementCapabilities
This output class has one new property.
  • extensions—If a feed element has this capability, it has one or more extension attachments.
ConnectApi.LightningExtensionInformation (Pilot)
This new output class is a subclass of ConnectApi.AbstractExtensionInformation. It has these properties.
  • compositionComponent—Component to use in compose state.
  • headerTextLabel—Label for the extension’s header.
  • hoverTextLabel—Label for hovering over the extension.
  • renderComponent—Component to use in render or preview state.
ConnectApi.ReadBy
This new output class has these properties.
  • lastReadDateByUser—When the user last read the feed element.
  • user—Information about the user who read the feed element.
ConnectApi.ReadByCapability
This new output class is a subclass of ConnectApi.FeedElementCapability. It has these properties.
  • isReadByMe—Specifies whether the feed element has been read (true) or not (false) by the context user.
  • lastReadDateByMe—Last date when the feed element was marked read for the context user. Otherwise, null.
  • page—First page of information about who read the feed element and when.
ConnectApi.ReadByPage
This new output class has these properties.
  • currentPageToken—Token identifying the current page.
  • currentPageUrl—Chatter REST API URL identifying the current page.
  • items—Collection of read-by information, including users and when they last read the feed element.
  • nextPageToken—Token identifying the next page, or null if there isn’t a next page.
  • nextPageUrl—Chatter REST API URL identifying the next page, or null if there isn’t a next page. Check whether this value is null before getting another page. If a page doesn’t exist, a ConnectApi.NotFoundException error is returned.
  • previousPageToken—Reserved for future use.
  • previousPageUrl—Reserved for future use.
  • total—Total number of users who read the feed element.
ConnectApi.SocialPostCapability
This output class has these new properties.
  • likedBy—External social account who liked the social post.
  • reviewScale—Review scale of the social post.
  • reviewScore—Review score of the social post.
ConnectApi.UserSettings
This output class has one new property.
  • canAccessPersonalStreams—User can access personal stream feeds.

Community Moderation

ConnectApi.ModerationFlagItemDetail
This new output class has these properties.
  • createdBy—ID of the user who flagged the item.
  • createdDate—Date when the item was flagged.
  • id—ID of the moderation flag.
  • moderationType—Specifies the type of moderation flag. Values are:
    • FlagAsInappropriate—Flag for inappropriate content.
    • FlagAsSpam—Flag for spam.
  • note—Note from user who flagged the item.
  • visibility—Specifies the visibility behavior of a flag for various user types. Values are:
    • ModeratorsOnly—The flag is visible only to users with moderation permissions on the flagged element or item.
    • SelfAndModerators—The flag is visible to the creator of the flag and to users with moderation permissions on the flagged element or item.
ConnectApi.ModerationFlags
This output class has these new properties.
  • flagCountByReason—Number of moderation flags categorized by reason.
  • flags—Collection of flags.
ConnectApi.ModerationFlagsCollection
This new output class has these properties.
  • currentPageToken—Token identifying the current page.
  • currentPageUrl—Chatter REST API URL identifying the current page.
  • flags—List of flag details.
  • nextPageToken—Token identifying the next page, or null if there isn’t a next page.
  • nextPageUrl—Chatter REST API URL identifying the next page, or null if there isn’t a next page. Check whether this value is null before getting another page. If a page doesn’t exist, a ConnectApi.NotFoundException error is returned.
  • pageSize—Number of items per page.

Files

ConnectApi.Content
This output class has one new property.
  • imageDetails—Image details, or null if the file isn’t an image.
ConnectApi.ContentImageFileDetails
This new output class has these properties.
  • height—Image’s height in pixels.
  • imageFormat—Image’s format.
  • orientation—Image’s EXIF orientation value, if present.
  • width—Image’s width in pixels.

Files Connect

ConnectApi.ContentHubRepository
This output class has one new property.
  • authentication—Repository authentication information.
ConnectApi.ContentHubRepositoryAuthentication
This new output class has these properties.
  • authFlowUrl—Depends on the authProtocol.
    • NoAuthenticationnull.
    • Oauth—URL to start the OAuth flow.
    • Password—URL to the authentication settings for external systems.
  • authProtocol—Specifies the authentication protocol used for the repository.
    • NoAuthentication—Repository doesn’t require authentication.
    • Oauth—Repository uses OAuth authentication protocol.
    • Password—Repository uses user name and password authentication protocol.
  • userHasAuthSettings—Specifies whether the user has credentials or the administrator configured the external data source to use the same set of credentials for every user (true). Otherwise, false.
ConnectApi.FilePreviewCollection
This output class has one new property.
  • versionNumber—Version number of the file.

Records

ConnectApi.EntityLabel
This new output class has these properties.
  • label—Localized singular label of the entity.
  • labelPlural—Localized plural label of the entity.
ConnectApi.RecordSummary
This output class has one new property.
  • entityLabel—Label of the record’s entity.

Users Out of Office (Pilot)

Note

Note

We provide Out of Office to selected customers through a pilot program that requires agreement to specific terms and conditions. To be nominated to participate in the program, contact Salesforce. Pilot programs are subject to change, and we can’t guarantee acceptance. Out of Office isn’t generally available unless or until Salesforce announces its general availability in documentation or in press releases or public statements. We can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

ConnectApi.MentionCompletion
This output class has one new property.
  • outOfOffice—If the record represented by this completion is a user, an additional out-of-office message, if one exists, for the user.
ConnectApi.OutOfOffice (Pilot)
This new output class has one property.
  • message—Out-of-office message for the user.
ConnectApi.User
This output class has one new property.
  • outOfOffice—Extra out-of-office message, if one exists, for the user.