NetworkModeration

Represents a flag on an item in a community.

Introduced in API version 30.0.

create(), delete(), describeSObjects(), query(), retrieve()

  • This object is available only when your org has digital experiences enabled.
  • Type: reference
  • Properties: Create, Filter, Group, Nillable, Sort
  • Description: ID of the post, comment, or file that was flagged.
  • Relationship name: Entity
  • Relationship type: polymorphic
  • Refers to: ChatterMessage, ContentDocument, FeedComment, FeedItem
  • Type: picklist

  • Properties: Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort

  • Introduced: API version 38.0

  • Description:

    Determines the type of flag applied to an item. Values are:

    • FlagAsInappropriate
    • FlagAsSpam
  • Type: reference
  • Properties: Create, Filter, Group, Nillable, Sort
  • Description: ID of the community in which the item was flagged.
  • Relationship name: Network
  • Relationship type: relationship
  • Refers to: Network
  • Type: textarea
  • Properties: Create, Filter, Nillable, Sort
  • Introduced: API version 38.0
  • Type: picklist

  • Properties: Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort

  • Description:

    Determines visibility of a flagged item. Values are:

    • SelfAndModerators—The user who flagged the item and any moderators can see the flagged item. This is the default value.
    • ModeratorsOnly—Only moderators can see the flagged item. If ModeratorsOnly is selected, only moderators can set flags using the API.

Use this object to view the items flagged for moderation within a community. Additionally, users with “Moderate Feeds” and “Modify All Data” can remove flags.

Flags on items are created either when a member manually flags an item in a community (if flagging is enabled for that community), or when a trigger automatically flags an item because the item met the trigger criteria.