How to create new OneNote notebook via custom content type in a doc set and open in OneNote Online?

%3CLINGO-SUB%20id%3D%22lingo-sub-46903%22%20slang%3D%22en-US%22%3EHow%20to%20create%20new%20OneNote%20notebook%20via%20custom%20content%20type%20in%20a%20doc%20set%20and%20open%20in%20OneNote%20Online%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-46903%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20requirement%20on%20a%20current%20project%20to%20allow%20creation%20of%20a%20OneNote%20web%20app%20notebook%26nbsp%3Bwithin%20a%20document%20set%20in%20a%20SharePoint%20Online%20document%20library%20where%20we%20have%20custom%20content%20types.%20I%20have%20added%20%22Notebook.one%22%20as%20the%20template%20for%20a%20%22Notebook%22%20content%20type%20but%20the%20experience%20is%20not%20great.%20The%20library%20is%20set%20to%20open%20files%20in%20the%20browser.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20the%20user%20goes%20to%20add%20a%20new%20OneNote%20notebook%20instead%20of%20OneNote%20web%20app%20opening%20the%20desktop%20version%20of%20OneNote%20opens%2C%20and%20also%20presents%20this%20message%3A%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20992px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F10949iD77DB689FAB90046%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22OneNote%20Error.png%22%20title%3D%22OneNote%20Error.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20they%20click%20ok%20the%20notebook%20is%20opened%20and%20ready%20to%20edit%2C%20and%20the%20document%20set%20is%20updated%20with%20a%20new%20notebook%20always%20titled%20%22New%20Section%201.one%22.%20At%20this%20point%20the%20notebook%20can%20be%20opened%20in%20either%20client%20or%20Online%20by%20right-clicking%20the%20file.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20we%20want%20is%20when%20the%20user%20clicks%20the%20New%20button%20and%20selects%20my%20custom%20OneNote%20content%20type%20for%20a%20new%20notebook%20to%20be%20created%20and%20it%20be%20opened%20up%20in%20OneNote%20Online.%20How%20can%20we%20accomplish%20this%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-260342%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20create%20new%20OneNote%20notebook%20via%20custom%20content%20type%20in%20a%20doc%20set%20and%20open%20in%20OneNote%20Onli%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-260342%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20having%20a%20similar%20problem.%26nbsp%3B%20Got%20the%20template%20to%20work%20fine%20but%20it%20seems%20to%20just%20get%20added%20in%20the%20'open%20sections'%20of%20the%20person%20who%20created%20the%20new%20section%20from%20the%20template%20and%20they%20can%20then%20'move'%20that%20section%20to%20the%20right%20notebook%20BUT%20if%20that%20notebook%20doesn't%20already%20exist%20then%20there's%20a%20problem.%26nbsp%3B%20I%20can't%20seem%20to%20create%20a%26nbsp%3Bnew%20notebook%20in%20the%20SharePoint%20Document%20library%20and%20since%20you%20can't%20easily%20move%20notebooks%20this%20is%20a%20problem.%26nbsp%3B%20I%20want%20them%20created%20to%20begin%20with%20in%20SharePoint.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

I have a requirement on a current project to allow creation of a OneNote web app notebook within a document set in a SharePoint Online document library where we have custom content types. I have added "Notebook.one" as the template for a "Notebook" content type but the experience is not great. The library is set to open files in the browser.

 

When the user goes to add a new OneNote notebook instead of OneNote web app opening the desktop version of OneNote opens, and also presents this message: 

 

OneNote Error.png

 

When they click ok the notebook is opened and ready to edit, and the document set is updated with a new notebook always titled "New Section 1.one". At this point the notebook can be opened in either client or Online by right-clicking the file.

 

What we want is when the user clicks the New button and selects my custom OneNote content type for a new notebook to be created and it be opened up in OneNote Online. How can we accomplish this?

 

1 Reply
Highlighted

I am having a similar problem.  Got the template to work fine but it seems to just get added in the 'open sections' of the person who created the new section from the template and they can then 'move' that section to the right notebook BUT if that notebook doesn't already exist then there's a problem.  I can't seem to create a new notebook in the SharePoint Document library and since you can't easily move notebooks this is a problem.  I want them created to begin with in SharePoint.