Newer Version Available

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

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