Newer Version Available

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

NetworkModeration

Represents a flag on an item in a community. This object is available in API version 30.0 and later.

Supported Calls

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

Special Access Rules

This object is available only if Salesforce Communities is enabled in your organization.

Fields

Field Name Details
EntityId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort
Description
ID of the post, comment, or file that was flagged.
NetworkId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the community in which the item was flagged.
Visibility
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Nillable, 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.

Usage

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.