我能够使用Microsoft Graph API从SharePoint库成功提取文件元数据,但是在提取项目属性时遇到了麻烦:
我可以使用此端点获取部分属性列表:
https://graph.microsoft.com/v1.0/sites/ {site-id} / drives / {} / items / {} / children?$ expand = listItem($ expand = fields)
但是来自此端点的列表与该项目上存在的属性列表不匹配。
例如,下面是该端点的字段列表-您可以看到“ .Push Too Salsify”。 (我需要的字段之一)不存在。还有其他字段,但没有出现在项目属性中:
{'ParentLeafNameLookupId':'466','CLIPPING_x0020_STATUS':'未开始','编辑':'0','EditorLookupId':'67','_ComplianceTagWrittenTime':'','RequiredField':'团队/ WORKFLOWDEMO /共享文档/1062CQP6.Phase4/1062CQP-Phase4-Size.tif'、'PM_x0020_SIGN_x0020_OFF':'否','QA_x0020_APPROVED':'否','图像宽度':3648,'PM_x0020_Approvus_x0020 AuthorLookupId':'6','SelectedFlag':'0','NameOrTitle':'1062CQP-Phase4-Size.tif','ItemChildCount':'0','FolderChildCount':'0','LinkFilename':' 1062CQP-Phase4-Size.tif','ParentVersionStringLookupId':'466','PHOTOSTATUS':'未开始','@ odata.etag':'“ c4b7516e-64df-46d2-b916-a1ee6f29d24a,8”,' Thumbnail':'3648','_x002e_Approval_x0020_Status_x002e_':'Approved','Date_x0020_Created':'2019-10-09T04:25:40Z','_CommentCount':'','Created':'2019-10-09T04:25 :33Z'','PreviewOnForm':'0','_ComplianceTag':'','FileLeafRef':'1062CQP-Phase4-Size.tif','ImageHeight':3648,'LinkFilenameNoMenu':'1062CQP-Phase4-Size。 tif','_Co mplianceFlags':'','ContentType':'Document','Preview':'3648','ImageSize':'3648','Product_x0020_Category':'Baseball','DATE_x0020_ASSIGNED':'2019-10-09T04:25 :40Z','DateCreated':'2019-10-09T04:25:40Z','WORKFLOW_x0020_SELECTION':['Select'],'Predecessors':[],'FileType':'tif','LEGAL_x0020_APPROVED':'否','PUSH_x0020_READY':False,'FileSizeDisplay':'74966432','id':'466','_LikeCount':'','_ComplianceTagUserId':'','Modified':'2019-10-09T14: 41:25Z”,“ DocIcon”:“ tif”,“ _ UIVersionString”:“ 0.7”,“ _ CheckinComment”:“}
任何帮助将不胜感激。我已经仔细阅读了文档,似乎找不到正确的端点来从Sharepoint DriveItem中提取项目属性。