创建包含名称以下划线开头的字段的SharePoint列表项时出错

时间:2018-08-16 10:03:25

标签: microsoft-graph

POST https://graph.microsoft.com/v1.0/sites/{site-id}/lists/{list-id}/items

尝试创建SharePoint列表项时失败,并显示以下错误。

{
    "error": {
        "code": "invalidRequest",
        "message": "Field '_fieldExample' is not recognied",
        "innerError": {
            "request-id": "8b54a4a4-5f14-47d0-8651-908043a9aea1",
            "date": "2018-05-07T07:56:52"
        }
    }
}

下面是一个示例JSON reqeust主体来重现该问题:

{
  "fields": {
    "Title": "Title42",
    "_fieldExample": "aaa"
   }
}

但是列表中存在字段“ _fieldExample”:

字段的JSON:

{
    "columnGroup": "Custom Columns",
    "description": "",
    "displayName": "_fieldExample",
    "enforceUniqueValues": false,
    "hidden": false,
    "id": "18012342-6f36-44dd-a660-ca27d194cc79",
    "indexed": false,
    "name": "_fieldExample",
    "readOnly": false,
    "required": false,
    "text": {
        "allowMultipleLines": false,
        "appendChangesToExistingText": false,
        "linesForEditing": 0,
        "maxLength": 255
    }
}

我正在关注以下链接中的文档:

https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/listitem_create

0 个答案:

没有答案