> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Sections

Get a list of all sections.

<Note>
  External Documentation

  To learn more, visit the [Microsoft OneNote documentation](https://learn.microsoft.com/en-us/graph/api/onenote-list-sections?view=graph-rest-1.0\&tabs=http).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter         | Description                                                                                                                                                                                                                                             |
  | ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Expand            | Optional fields to include the response.<br /><br />For more information about the `Expand` parameter, please refer to [Microsoft query parameters documentation](https://learn.microsoft.com/en-us/graph/query-parameters?tabs=http#expand-parameter). |
  | Filter            | Filter results using OData query syntax.                                                                                                                                                                                                                |
  | Limit             | The maximum number of items to return per page. The maximum value for this parameter is `100`.                                                                                                                                                          |
  | Notebook ID       | The ID of the notebook to filter the sections by.                                                                                                                                                                                                       |
  | Notebook Location | Choose whether to access OneNote from your account, OneDrive, or from a SharePoint site.                                                                                                                                                                |
  | Offset            | The pagination offset indicating the starting point for the next set of results.                                                                                                                                                                        |
  | Order By          | Sort results by a specific property in ascending (asc) or descending (desc) order.<br /><br />For example: `displayName asc`                                                                                                                            |
  | Return All Pages  | Automatically fetch all resources, page by page.                                                                                                                                                                                                        |
  | Site ID           | The ID of the SharePoint site that contains the OneNote notebook. Can be obtained by using the `SharePoint List Sites` action.                                                                                                                          |
  | User ID           | The ID of the user whose OneDrive contains the OneNote notebooks.<br /><br />**Note**: Using the delegated (OAuth) connection type will only allow to insert the connected user's ID.                                                                   |
</div>

## Example Output

```json theme={"dark"}
{
	"value": [
		{
			"isDefault": true,
			"pagesUrl": "pagesUrl-value",
			"displayName": "name-value",
			"createdBy": {
				"user": {
					"id": "id-value",
					"displayName": "displayName-value"
				}
			},
			"lastModifiedBy": {
				"user": {
					"id": "id-value",
					"displayName": "displayName-value"
				}
			}
		}
	]
}
```

## Workflow Library Example

[List Sections with Microsoft Onenote and Send Results Via Email](https://library.blinkops.com/workflows/list-sections-with-microsoft-onenote-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/list-sections-with-microsoft-onenote-and-send-results-via-email/canvas" />
</div>
