Adding Apex triggers to Idea Comments lets you perform actions related to comments that users post to an idea.
Required Editions
| View supported editions |
| User Permissions Needed | |
|---|---|
| To define Apex triggers: | Author Apex |
| To manage Ideas communities: | Customize Application |
A trigger is a set of Apex code that fires at a particular time in the lifecycle of a record. To better manage ideas in your Ideas community, you can add Apex triggers to idea comments.
Use triggers on comments to perform actions such as:
- Sending an email notification to the moderator or other user when a comment is left on an idea.
- Sending an email notification to the user with the contents of their comment.
- Notifying the moderator when a specified number of comments is reached for an idea.
- Preventing posting of comments with specific words.