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

> Macro (table-plus)
> 
> |  |  |  |  |
> | --- | --- | --- | --- |
> | **Syntax** | copyPageContent(sourcePageId, targetPageId); | **Package** |  |
> | **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Copies page content from one page to another.

Copies page content from one page to another.

## Parameters

> Macro (table-plus)
> 
> | Parameter name | Type | Required | Description |
> | --- | --- | --- | --- |
> | sourcePageId | Number | Yes | The ID of the source page. |
> | targetPageId | Number | Yes | The ID of the target page. |

## Return Type

**Boolean(true\false)**

Returns true if page body was copied successfully.

## Example

```javascript
number sourcePageId = 10002;
number targetPageId = 11003;
return copyPageContent(sourcePageId, targetPageId);
```

## See also

> Macro (contentbylabel)