4 min read

createPage Documentation

Purpose

This node is designed to create a new page within a specified OneNote section in the Vantage analytics and data platform. This functionality allows users to programmatically manage their OneNote pages by defining a title and content, enhancing integration capabilities between analytics data and OneNote for improved organization and workflow.

Settings

The node incorporates several configurable settings. Each setting determines specific operational behavior and appearance for the page being created. Below is an exhaustive delineation of each setting.

1. sectionId

2. title

3. content

How It Works

The node operates as follows:

  1. Integration Setup: It starts by establishing a connection to the OneNote service using a secure connection.
  2. Section Handling: It checks for the sectionId to determine the section where the new page will be created. If the sectionId is not provided, it defaults to creating the page in the 'Workflows' section.
  3. Title Requirement: The function verifies the presence of the title. If it is absent, an error message is returned.
  4. Page Creation: Once all parameters are validated, it invokes the integration.createPage() method to create a new page with the specified title and content.
  5. Response Handling: Finally, it formats the output to include key details about the newly created page, such as its ID, title, and web URL, or returns an error if any issues occur during the process.

Data Expectations

The node expects the following data:

Use Cases & Examples

Use Cases

  1. Project Documentation: A team uses createPage to automatically generate pages for each project milestone, where the title represents the milestone and the content outlines tasks completed and those still in progress.

  2. Knowledge Base Creation: An analytics team integrates OneNote as a knowledge repository, using createPage to create new pages for each data visualization or report, including charts and insights generated from Vantage.

  3. Meeting Notes: A project manager leverages createPage to create a new OneNote page for each meeting, summarizing discussions and actions with titles formatted as "Meeting Notes - [Date]".

Example Configuration

Use Case: Generating a Meeting Notes page automatically after a meeting.

Configuration Data:

json
{
  "inputs": {
    "sectionId": "A1B2C3D4",
    "title": "Meeting Notes - 2023-03-15",
    "content": "<h1>Project Update</h1><p>Discussed progress and next steps.</p>"
  },
  "config": {
    "sectionId": null,
    "title": null,
    "content": null
  }
}

In this example, a new page titled "Meeting Notes - 2023-03-15" will be created under the specified section (with ID A1B2C3D4), containing the provided content formatted in HTML. This ensures that all meeting notes are consistently recorded and easily retrievable in OneNote.