Newer Version Available

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

NetworkActivityAudit

Represents an audit trail of moderation actions in Communities. This object is available in API version 30.0 and later.

Supported Calls

create()delete()describeSObjects()getDeleted()getUpdated()query()retrieve()undelete()update()upsert()

Special Access Rules

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

Fields

Field Name Details
Action
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The moderation action a user performed on a post, comment, or file in a community.
Values are:
  • Flagged—A community member flagged a post, comment or file.
  • Unflagged—A community member removed the flag from a post, comment or file.
  • RemovedFlags—A moderator removed all flags from a post, comment, or file.
  • DeletedFlaggedItem—A moderator deleted a flagged post, comment, or file.
Description
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Notes entered by the user.

If the entity being moderated is a file, records the version number of the file when it was flagged.

EntityCreatedById
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of the user that created the entity being moderated.
EntityId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The ID of the entity that is being moderated.
EntityType
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The key prefix of entity being moderated.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The ID of the item being moderated.
NetworkId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of the network (community) where the moderation action was performed.
ParentEntityId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of the parent of the entity on which an action was performed.
ParentEntityType
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The key prefix of the parent of the entity being audited. 

Usage

Use this object to view an audit trail of moderation activity for your communities. You must have the “Modify All Data” permission to access this object.

Users with “Moderate Communities Feeds”, “Moderate Communities Files” or “View All Data” can view the audit trail using reports in the Salesforce user interface.