question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New command: Create a new OneNote notebook

See original GitHub issue

Usage

m365 onenote notebook add

Description

Create a new OneNote notebook.

Options

Option Description
-n, --name <name> Name of the notebook. Notebook names must be unique. The name cannot contain more than 128 characters or contain the following characters: ?*/:<>
--userId [userId] Id of the user. Use either userId or userName, but not both.
--userName [userName] Name of the user. Use either userId or userName, but not both.
--groupId [groupId] Id of the SharePoint group. Use either groupName or groupId, but not both.
--groupName [groupName] Name of the SharePoint group. Use either groupName or groupId, but not both.
-u, --webUrl [webUrl] URL of the SharePoint site.

Additional Info

Create notebook (MS Graph docs)

Examples

Create a Microsoft OneNote notebook Private Notebook for the currently logged in user

m365 onenote notebook add --name "Private Notebook"

Create a Microsoft OneNote notebook Private Notebook in group 233e43d0-dc6a-482e-9b4e-0de7a7bce9b4

m365 onenote notebook add --name "Private Notebook" --groupId 233e43d0-dc6a-482e-9b4e-0de7a7bce9b4

Create a Microsoft OneNote notebook Private Notebook in group My Group

m365 onenote notebook add --name "Private Notebook" --groupName "MyGroup"

Create a Microsoft OneNote notebook Private Notebook for user user1@contoso.onmicrosoft.com

m365 onenote notebook add --name "Private Notebook" --userName user1@contoso.onmicrosoft.com

Create a Microsoft OneNote notebook Private Notebook for user 2609af39-7775-4f94-a3dc-0dd67657e900

m365 onenote notebook add --name "Private Notebook" --userId 2609af39-7775-4f94-a3dc-0dd67657e900

Create a Microsoft OneNote notebook Private Notebook for site https://contoso.sharepoint.com/sites/testsite

 m365 onenote notebook add --name "Private Notebook" --webUrl https://contoso.sharepoint.com/sites/testsite

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
Abderahman88commented, Mar 7, 2022

@garrytrinder Yes, you may assign to me

1reaction
Abderahman88commented, Nov 1, 2022

Status update : command is almost finished. Need to write some tests.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create a new notebook in OneNote for Windows 10
Enter a name for the new notebook, and then click Create Notebook. OneNote switches to the new notebook, which contains a new section...
Read more >
OneNote 2016 Tutorial Creating New Notebooks ... - YouTube
FREE Course! Click: https://www.teachucomp.com/freeLearn about Creating New Notebooks in Microsoft OneNote at www.teachUcomp.com.
Read more >
Microsoft OneNote Quick Start Guide
New to OneNote? Use this guide to learn the basics. Quick Access Toolbar. Keep favorite commands permanently visible.
Read more >
How To Create a OneNote Page from the Command Line
In order to create a new note use the createnote verb. C:\src\Releases\OneNoteCLI>OneNoteCLI createnote OneNoteCLI 1.0.0.0 Copyright c 2019 ...
Read more >
Microsoft OneNote Basics
Create a New Notebook. OneNote notebooks can be stored on your computer, OneDrive, a Teams site, or an Office 365 Group site. To...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found