Microsoft graph api 创建计划后获取Microsoft团队组/团队的驱动器

Microsoft graph api 创建计划后获取Microsoft团队组/团队的驱动器,microsoft-graph-api,microsoft-teams,microsoft-graph-teams,microsoft-planner,Microsoft Graph Api,Microsoft Teams,Microsoft Graph Teams,Microsoft Planner,我正在使用Microsoft Graph API 1) Create Team and Channels 2) Installing an App 3) Adding Plans, buckets, and tasks to the planner app 4) Copy items from another Drive to the newly created channels drive. 我的代码是按这个顺序执行的 1) Create Group and Team 2) Create C

我正在使用Microsoft Graph API

1) Create Team and Channels
2) Installing an App
3) Adding Plans, buckets, and tasks to the planner app
4) Copy items from another Drive to the newly created channels drive.
我的代码是按这个顺序执行的

1) Create Group and Team
2) Create Channel under team
3) Create Plan in Planner   **/planner/plans**
4) Install another app
5) adding buckets and tasks to the created PLan
6) get list of drives using `groups/{group-id}/drive/items/{item-id}/children`
7) Copy items to drive of Created channel
所以这个顺序中的问题是,第7点只返回通用香奈儿的驱动,而不返回通用香奈儿的驱动 新创建的频道

但是如果我把代码执行顺序改为

1> 2>7>4>3>5>6>7
然后,它在获取驱动器步骤中返回所有驱动器

因此,我发现在获取驱动器之前创建一个计划是一个问题。如果在“计划器”中创建计划之前先获取驱动器,则该方法有效。 为什么会这样


代码执行的正确顺序应该是什么,以便所有操作都按预期进行?

获取驱动器时会出现什么错误?错误代码是401吗?在用户通过浏览器访问其个人站点之前,首次通过Microsoft Graph访问用户的个人驱动器会导致401响应。这是一个众所周知的问题。