SharePoint, OneNote, and Flow...issues with copying a OneNote Notebook using Flow

%3CLINGO-SUB%20id%3D%22lingo-sub-217409%22%20slang%3D%22en-US%22%3ESharePoint%2C%20OneNote%2C%20and%20Flow...issues%20with%20copying%20a%20OneNote%20Notebook%20using%20Flow%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-217409%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20have%20a%20OneNote%20notebook%20in%20a%20Document%20Library%20that%20contains%20many%20sections.%26nbsp%3B%20We%20use%20this%20notebook%20each%20time%20we%20create%20a%20new%20folder%20in%20a%20document%20library.%26nbsp%3B%20In%20the%20past%20we%20have%20manually%20created%20it.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEnd%20goal%3A%20To%20be%20able%20to%20open%20the%20Notebook%20in%20SharePoint%20Online.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEvery%20way%20I%20try%20to%20write%20the%20Flow%20I%20am%20failing.%20%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E1)%20If%20I%20create%20the%20OneNote%20as%20a%20template%20(onepkg)%2C%20I%20can%20successfully%20copy%20the%20file%20from%20the%20template%20site%20to%20the%20new%20folder.%26nbsp%3B%20But%20when%20I%20open%20it%2C%20it%20opens%20in%20Native%20Client%2C%20requires%20me%20to%20choose%20a%20location%20to%20save%20it%20to%2C%20and%20if%20I%20choose%20back%20to%20SharePoint%20it%20creates%20a%20folder%20with%20individual%20pages%20for%20each%20section.%20Fail.%3C%2FP%3E%3CP%3E2)%20If%20I%20just%20try%20to%20copy%20the%20OneNote%20(not%20as%20a%20template)%2C%20Flow%20doesn't%20recognize%20it%20as%20a%20file%3B%20it%20sees%20it%20as%20a%20folder.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnyone%20have%20any%20suggestions%20on%20the%20best%20way%20to%20solve%20this%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-217409%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Flow%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerApps%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-217419%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%2C%20OneNote%2C%20and%20Flow...issues%20with%20copying%20a%20OneNote%20Notebook%20using%20Flow%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-217419%22%20slang%3D%22en-US%22%3E%3CP%3EIt%20looks%20like%20we%20will%20have%20to%20use%20the%20OneNote%20API%20to%20accomplish%20this.%20%3A%5C%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

We have a OneNote notebook in a Document Library that contains many sections.  We use this notebook each time we create a new folder in a document library.  In the past we have manually created it. 

 

End goal: To be able to open the Notebook in SharePoint Online.

 

 

Every way I try to write the Flow I am failing.  

 

1) If I create the OneNote as a template (onepkg), I can successfully copy the file from the template site to the new folder.  But when I open it, it opens in Native Client, requires me to choose a location to save it to, and if I choose back to SharePoint it creates a folder with individual pages for each section. Fail.

2) If I just try to copy the OneNote (not as a template), Flow doesn't recognize it as a file; it sees it as a folder.

 

Anyone have any suggestions on the best way to solve this?

1 Reply

It looks like we will have to use the OneNote API to accomplish this. :\