# Microsoft OneNote

> Organize, create, and retrieve notebooks, sections, and pages in Microsoft OneNote.

App · Notes · 8 actions. Web page: https://docs.lodol.com/docs/integrations/microsoft-onenote

## Actions

### Create notebook

Create a new OneNote notebook.

**Inputs**

- Notebook name (`display_name`, text, required): The name for the new notebook.

**Outputs**

- `displayName` (text): Notebook name.
- `id` (text): Notebook ID.

**Example output**

```json
{
  "displayName": "New Notebook",
  "id": "nb2"
}
```

### Create page

Create a new page in a OneNote section.

**Inputs**

- Section ID (`section_id`, text, required): The ID of the section.
- Title (`title`, text, required): The title of the page.
- Page content (`html_content`, text, required): The content of the page, written in HTML (for example, <p>Meeting notes</p>).

**Outputs**

- `id` (text): Page ID.
- `title` (text): Page title.

**Example output**

```json
{
  "id": "page2",
  "title": "New Page"
}
```

### Create section

Create a new section in a OneNote notebook.

**Inputs**

- Notebook ID (`notebook_id`, text, required): The ID of the notebook.
- Section name (`display_name`, text, required): The name for the new section.

**Outputs**

- `displayName` (text): Section name.
- `id` (text): Section ID.

**Example output**

```json
{
  "displayName": "New Section",
  "id": "sec2"
}
```

### Delete page

Delete a OneNote page.

**Inputs**

- Page ID (`page_id`, text, required): The ID of the page to delete.

**Outputs**

- `deleted` (true/false): Whether deletion succeeded.

**Example output**

```json
{
  "deleted": true
}
```

### Get page content

Get the HTML content of a OneNote page.

**Inputs**

- Page ID (`page_id`, text, required): The ID of the page.

**Outputs**

- `content` (text): HTML content of the page.

**Example output**

```json
{
  "content": "<html>...</html>"
}
```

### List notebooks

List all OneNote notebooks for a user.

**Inputs**: None.

**Outputs**

- `value` (list): List of notebooks.

**Example output**

```json
{
  "value": [
    {
      "displayName": "Notebook 1",
      "id": "nb1"
    }
  ]
}
```

### List pages

List all pages in a OneNote section.

**Inputs**

- Section ID (`section_id`, text, required): The ID of the section.

**Outputs**

- `value` (list): List of pages.

**Example output**

```json
{
  "value": [
    {
      "id": "page1",
      "title": "Page 1"
    }
  ]
}
```

### List sections

List all sections in a OneNote notebook.

**Inputs**

- Notebook ID (`notebook_id`, text, required): The ID of the notebook.

**Outputs**

- `value` (list): List of sections.

**Example output**

```json
{
  "value": [
    {
      "displayName": "Section 1",
      "id": "sec1"
    }
  ]
}
```
