Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Syntax

createPage(spaceKey, parentPageId, pageTitle, pageContent)

...

The page ID of the newly created page.

Example

Example 1

Code Block
string spaceKey = "PSCONF";
number parentPageId = 11801;
string pageTitle = "New Page";
string pageContent = "<p>This page was created by Power Scripts!<p>";

number newPage = createPage(spaceKey, parentPageId, pageTitle, pageContent);

%newPage%.labels += "new";

...