---
title: "approve-page macro"
canonical: "https://support.appfire.com/space/CDML/649826933/approve-page%20macro"
format: markdown
---
> Macro (aura-html)


## Overview

> Macro (excerpt)
> 
> Approve an approval

The `approve-page` macro is used to instantly approve a specific approval.

## Where to use it?

Optional.

One or more `approve-page` macros can be put in a [trigger macro](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649859133).

## Parameters

| **Parameter** | **Required** | **Default** | **Notes** | **Ver** |
| --- | --- | --- | --- | --- |
| *unnamed first parameter* | :check_mark: |  | Name of the approval to approve.<br>:blue_star: Only applies if there is an active approval of that name. |  |
| `comment` |  |  | Approval comment:<br>- plain text
- can use any character set supported by your Confluence server – except some [reserved characters](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649859070) |  |
| `credentials` |  |  | [Obsolete] This parameter is no longer available and should not be used.<br>The [requirement for credentials](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649890845) is now [defined for each approval](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649757622). The method of credentials is [configured at the global level](https://appfire.atlassian.net/wiki/spaces/CDML/pages/650347320). | Removed from v5.0.8 |

## Events

The following [events](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649759655) are associated with approvals:

- `newsapproved`
- `pageapproved`

## Example

```plaintext
{workflow:name=Approve Page}
   {state:Editing|submit=Content Review}
   {state}
   {state:Content Review|approved=Published|rejected=Editing}
      {approval:Review}
   {state}
   {state:Published}
   {state}
   {trigger:statechanged|state=Content Review}
      {approve-page:Review|comment=Instant approval}
   {trigger}
{workflow}
```

The trigger action will cause the workflow to transition using the `approve-page` macro.

- the transition will be  `approved=Published`
- the page activity will display the transition to the **Content Review** state and the immediate transition to the **Published** state

<span style="color: #ffffff">o</span>> Macro (inline-media-image)




It is useful to include a comment in the `approve-page` macro. This will be displayed in the page activity report.

## Events with anonymous users

The `approve-page` macro will not work with events that are ascribed by the workflow to an anonymous user. For example the `stateexpired` event.

<span style="color: #ffffff">o</span>> Macro (inline-media-image)



### See also

[Workflow Authoring Guide](https://appfire.atlassian.net/wiki/spaces/CDML/pages/648611901):

- [Reviews](https://appfire.atlassian.net/wiki/spaces/CDML/pages/650153766)
- [States](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649595551)
- [Transitions](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649563425)
- [Events](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649759655)
- [Triggers](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649563178)
- [Actions](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649858941)

[Reporting Guide](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649070833):

- [Document States Report macro](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649562443)
- [Workflow Report macro - Approvals](https://appfire.atlassian.net/wiki/spaces/CDML/pages/650120822)