cli-microsoft365 icon indicating copy to clipboard operation
cli-microsoft365 copied to clipboard

New command: Create a new OneNote notebook

Open Abderahman88 opened this issue 2 years ago • 6 comments

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 [email protected]

m365 onenote notebook add --name "Private Notebook" --userName [email protected]

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

Abderahman88 avatar Mar 04 '22 21:03 Abderahman88

Great suggestion and spec @Abderahman88 nothing to add 👍 Would you like to take this up?

garrytrinder avatar Mar 06 '22 16:03 garrytrinder

@garrytrinder Yes, you may assign to me

Abderahman88 avatar Mar 07 '22 20:03 Abderahman88

Great, thank you for your support @Abderahman88 👏

garrytrinder avatar Mar 07 '22 20:03 garrytrinder

Hi @Abderahman88, just checking in: are you still working on this?

martinlingstuyl avatar Jul 15 '22 19:07 martinlingstuyl

@martinlingstuyl I'm going to start working on it 👍

Abderahman88 avatar Aug 22 '22 20:08 Abderahman88

That's great! Let us know if you need any help!

martinlingstuyl avatar Aug 23 '22 05:08 martinlingstuyl

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

Abderahman88 avatar Nov 01 '22 00:11 Abderahman88

Thanks for the status update @Abderahman88. Much appreciated! 🚀

Jwaegebaert avatar Nov 02 '22 11:11 Jwaegebaert

@Abderahman88 I closed the PR since it was waaaay out of date with what we currently have on main branch and it will be better to start a new PR from our current version also considering the comments left 🙂. Please do let me know if you still have time to work on this one or you would like us to open this up for the community to take?

Adam-it avatar Jun 17 '23 18:06 Adam-it

Opening it back up due to a lack of response.

milanholemans avatar Jul 19 '23 07:07 milanholemans

Can I work on this?

MathijsVerbeeck avatar Apr 04 '24 22:04 MathijsVerbeeck