---
title: "Using comment events in workflow triggers"
canonical: "https://support.appfire.com/space/CDML/649759081/Using%20comment%20events%20in%20workflow%20triggers"
format: markdown
---
> Macro (aura-html)


## Overview

> Macro (excerpt)
> 
> Triggering events when comments are created, updated or removed, or inline comments are created or resolved on the page.

In the following examples, we show how to display a message when users add / update / remove comments or add / resolve inline comments on a page or blog post.

## Comment created

```plaintext
{workflow:name=Comment added}
   {state:In Progress}
   {state}
   {state:Approved}
   {state}
   {trigger:pagecommentcreated}
      {set-message}A comment was added to the page.{set-message}
   {trigger}
{workflow}
```

## Comment updated

```plaintext
{workflow:name=Comment updated}
   {state:In Progress}
   {state}
   {state:Approved}
   {state}
   {trigger:pagecommentupdated}
      {set-message}A comment was updated on the page.{set-message}
   {trigger}
{workflow}
```

## Comment removed

```plaintext
{workflow:name=Comment removed}
   {state:In Progress}
   {state}
   {state:Approved}
   {state}
   {trigger:pagecommentremoved}
      {set-message}A comment was removed from the page.{set-message}
   {trigger}
{workflow}
```

## Inline comment created

```plaintext
{workflow:name=Inline comment added}
   {state:In Progress}
   {state}
   {state:Approved}
   {state}
   {trigger:inlinecommentcreated}
      {set-message}An inline comment was added to the page.{set-message}
   {trigger}
{workflow}
```

## Inline comment resolved

```plaintext
{workflow:name=Inline comment resolved}
   {state:In Progress}
   {state}
   {state:Approved}
   {state}
   {trigger:inlinecommentresolved}
      {set-message}An inline comment was resolved.{set-message}
   {trigger}
{workflow}
```