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.ModerationFlagItemDetail

Flag details on a feed item, comment, or file.
Property Name Type Description Available Version
createdBy String ID of the user who flagged the item. 40.0
createdDate Datetime Date when the item was flagged. 40.0
id String ID of the moderation flag. 40.0
moderationType ConnectApi.​CommunityFlagType Type of moderation flag. Values are:
  • FlagAsInappropriate—Flag for inappropriate content.
  • FlagAsSpam—Flag for spam.
40.0
note String Note from user who flagged the item. 40.0
visibility ConnectApi.​CommunityFlag​Visibility 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.
40.0