Microsoft Graph破坏SharePoint列表编号列值

时间:2018-11-22 10:34:15

标签: sharepoint microsoft-graph

我有一个SharePoint Online列表,其中包含带有以下值的数字列:

  • 90038946
  • 90000624
  • 90000627
  • 235712345

当我使用Microsoft Graph API时,返回的值将被篡改:

  • 90038940
  • 90000620
  • 90000620
  • 235712352

使用MS Graph dotnet sdkGraph Explorer都会发生这种情况,因此这似乎是MS Graph API服务的功能。

我在Graph Explorer(其中OrgUnitCode是数字列)中使用的REST URI是:

https://graph.microsoft.com/v1.0/sites/<SharePointTenant>,<SiteCollectionId>,<SiteId>/lists/<ListId>/items?$expand=fields($select%3DTitle,Code,Region,OrgUnitCode)

结果:

"fields": {
                "@odata.etag": "\"<GUID REMOVED>,1\"",
                "Title": "<REMOVED>",
                "Code": "<REMOVED>",
                "Region": "<REMOVED>",
                "OrgUnitCode@odata.type": "#Single",
                "OrgUnitCode": 90038940
            }

SharePoint REST API会返回值而不会修改值:

https://<SharePointTenant>/sites/<SiteCollectionName>/_api/web/lists/GetByTitle('<ListName>')/items

结果:

...<d:OrgUnitCode m:type="Edm.Double">90038946</d:OrgUnitCode>... 

如何关闭Microsoft Graph中的错误处理功能,以便可以检索实际值?

1 个答案:

答案 0 :(得分:0)

Microsoft已经确认这是SharePoint Graph API的服务错误。

https://github.com/microsoftgraph/msgraph-sdk-dotnet/issues/321#issuecomment-446754950

  

这是一个已确认的服务错误,已升级为适当的团队。