小编Jan*_*jek的帖子

无法通过 Microsoft Graph 更新 SharePoint 中的超链接或图片

我正在尝试更新列表项上的值(类型为超链接或图片)。执行 GET 请求时,数据返回正常,但是当我尝试创建一个项目或使用值更新它时,我最终得到以下结果:

{
    "error": {
        "code": "-1, Microsoft.SharePoint.Client.InvalidClientQueryException",
        "message": "A value without a type name was found and no expected type is available. When the model is specified, each value in the payload must have a type which can be either specified in the payload, explicitly by the caller or implicitly inferred from the parent value.",
        "innerError": {
            "request-id": "d12dfb12-a068-4621-9f27-d284e4635060",
            "date": "2019-05-28T08:52:51"
        }
    }
}
Run Code Online (Sandbox Code Playgroud)

POST/PATCH 请求转到:

https://graph.microsoft.com/v1.0/sites/<siteid>/lists/<listid>/items/
Run Code Online (Sandbox Code Playgroud)

并包含一个简单的 JSON(在 PATCH 的情况下):

{
  "WebPage":
  {
    "Description": "Microsoft Graph",
    "Url": …
Run Code Online (Sandbox Code Playgroud)

microsoft-graph-sdks microsoft-graph-api

8
推荐指数
1
解决办法
152
查看次数

如何通过 Microsoft Graph 创建 appRoleAssignment?

根据本文档,您应该能够通过 Microsoft Graph 创建 appRoleAssignment,但这不起作用。在GitHub 问题中,我被指示在此处创建问题。我们已将大部分代码从 Azure Graph API 迁移到 Microsoft Graph,这是缺少的最后一部分。

microsoft-graph-api

5
推荐指数
1
解决办法
735
查看次数