- Approve Post
- Flag Post, Flag Comment, and Flag File
- Unflag Post, Unflag Comment, Unflag File, and Unflag Private Message
- Delete Post, Delete Comment, Delete File, and Delete Private Message
- Freeze Member and Unfreeze Member
If you previously installed the Salesforce Communities Management package, you see actions for the report.
Actions that appear on the Insights report are displayed based on the data returned in the report. For example, if the report returns data about a user, the Freeze Member and Unfreeze Member actions are displayed. If the report stops returning data, actions aren’t removed. However, when you go to the Edit Insights Actions page, we let you know which actions are no longer appropriate. Actions that appear on the Edit Insights Actions page are all the available and appropriate actions for your report. This same logic is used to display custom actions.
So how do we make this magic happen? Visualforce pages drive Insights actions. Let’s look at the Freeze Member action as an example. This action appears when the report returns data about a user. Behind the scenes, a Visualforce page for this action links to the user object using a standard controller. When your report returns data about a user, all Visualforce pages related to the user object display in the list of available Insights actions.
To create your own custom action, use a Visualforce page. For example, you can create a custom action to delete all activity for a member. If a spammer attacks your community, use this custom action to remove all the spammer’s posts and comments with one click! Talk about power!