Difference between notebook id by OfficeJS and OneNote API

后端 未结 2 1573
轮回少年
轮回少年 2021-01-23 17:15

I\'m trying to build task-pane add-in for OneNote ClassNotebook.

I want to know whether current user is teacher or student.

To achieve this, my plan was:

2条回答
  •  情深已故
    2021-01-23 17:50

    EDIT: I'm happy to say this is now available, use GetRestApiID for this.

    https://github.com/OfficeDev/office-js-docs/blob/master/reference/onenote/page.md#getRestApiId


    At this moment, the OneNote REST API and OneNote add-ins have imcompatible id's. There is a uservoice entry for this: https://onenote.uservoice.com/forums/245490-onenote-developer-apis/suggestions/17010982-add-onenote-add-ins-to-onenote-api-compatible-ids

    For now, you'll have to rely in something like the URLs or the names.

提交回复
热议问题