---
schema_version: "1"
id: 700e6db9cece89f6c1b0155c788242180a4f0fc78d2692714d4bfd87579e3b26
title: NetworkModeration
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_networkmoderation.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_networkmoderation.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 84c8381358e72df883ff9cf59ef7b4456b8657666d37cb2205988e330109172a
description: Represents a flag on an item in a community. This object is available in API version 30.0 and later.
---
# 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 when your org has digital experiences enabled.

## Fields

| Field Name | Details |
| --- | --- |
| EntityId | 
Type

reference

Properties

Create, Filter, Group, Nillable, Sort

Description

ID of the post, comment, or file that was flagged.



 |
| ModerationType | 

Type

picklist

Properties

Create, Defaulted on create, Filter, Group, Nillable, Sort

Description

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

- FlagAsInappropriate
- FlagAsSpam





 |
| NetworkId | 

Type

reference

Properties

Filter, Group, Nillable, Sort

Description

ID of the community in which the item was flagged.



 |
| Visibility | 

Type

picklist

Properties

Create, Defaulted on 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.