Difference between notebook id by OfficeJS and OneNote API

后端 未结 2 1545
轮回少年
轮回少年 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:34

    The Id between REST API and JavaScript API are not compatible. What is compatible is ClientUrl.

    In JavaScript API, there is notebook.ClientUrl In Rest API, it has oneNoteClientUrl.

提交回复
热议问题