---
title: "movePage"
canonical: "https://support.appfire.com/space/PSCONF/15304031/movePage"
format: markdown
---
> Macro (aura-html)

> Macro (table-plus)
> 
> |  |  |  |  |
> | --- | --- | --- | --- |
> | **Syntax** | movePage(pageId, newParentPageId) | **Package** |  |
> | **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Moves the selected page to a new parent page.

Moves the selected page to a new parent page.

## Parameters

> Macro (table-plus)
> 
> | Parameter name | Type | Required | Description |
> | --- | --- | --- | --- |
> | pageId | Number | Yes | ID of the page to be moved. |
> | newParentPageId | Number | Yes | ID of the new parent page. |

## Return Type

**Boolean (true/false)**

Print Return true

## Examples

### Example 1

Print Return true

```javascript
boolean success = movePage(11801, 10321);
print("Return " + success);
```

### Example 2

```javascript
number pageId = getPage("PSCONF", "Page");
number newParentPageId = getPage("PSCONF", "New Parent Page");
movePage(pageId, newParentPageId);
```

## See also

> Macro (contentbylabel)