Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, 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.ModerationFlags

Information about the moderation flags on a feed item, comment, or file.
Name Type Description Available Version
flagCount Integer Number of moderation flags on this feed item, comment, or file. If the context user is not a moderator, the property is null. 29.0
flagCount​ByReason Map<ConnectApi.​CommunityFlag​ReasonType, Integer> Number of moderation flags categorized by reason. Values for ConnectApi.CommunityFlagReasonType are:
  • FlaggedByRule—Moderation rule flagged the item.
  • FlaggedBySystem—Einstein flagged the item.
  • FlaggedByUserAsInappropriate—User flagged the item as inappropriate.
  • FlaggedByUserAsSpam—User flagged the item as spam.
40.0
flaggedByMe Boolean true if the context user flagged the feed item, comment, or file for moderation; false otherwise. 29.0
flags ConnectApi.ModerationFlagsCollection Collection of flags. 40.0