modify the folder to convert it into a OneNote notebook t_underlyingObjectType(SP.FileSystemObjectType.folder) Var itemCreationInfo=new SP.ListItemCreationInformation() Var context=SP.ClientContext.get_current() The following code snippet shows a short example //common variables Luckily, you can achieve the same thing by setting the property “HTML File Type” of a folder. As you can’t access ProgId via JSOM, a different way to implement this functionality has to be found. With server-side code, you can “turn” a regular folder into a OneNote notebook by setting the ProgId property of the corresponding SPListItem to “OneNote.Notebook”. Generally speaking, a OneNote notebook in SharePoint is nothing else but a folder that is handled in a very specific way. After a few tries, it turned out that doing it via JSOM seems to be the best (and only?) option. This had to happen either with out-of-the-box functionality or via API calls (REST or JSOM). In a current project, one of the requirements was to create OneNote notebooks automatically in Office 365.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |