从SharePoint URL获取驱动器ID

问题描述

使用MS Graph API,我们是否可以找到具有给定SharePoint URL的某个文件夹的driveId

URL看起来像这样:

https://zpssgpatientsolutions.sharepoint.com/:f:/s/my_site/my_subsite/EllFGxYcxMNKt0kqOYH7OrIBo0AJu5NQ9-jc4rm2RTIKhA?e=IK11dT

解决方法

当前没有任何API可从SharePoint URL转换为OneDrive driveId。另一方面,OneDrive DriveItem API确实会返回有问题的SharePoint文件的webUrl。