我正在使用Python sharePoint在线库-Office365-REST-Python-Client创建新的列表项。我能够成功创建新列表。
[当我尝试使用“多项选择”字段创建新列表(认为这是自定义字段)时,我收到错误消息。
有效负载:
{'__metadata': {'type': 'SP.Data.MyListItem'}, 'Title': 'Task Created by Python Script',
'CategoryDescription': 'This is a test Task created by Python script with the help of Office 365 library.',
'Multichoicefield':{
'__metadata' : {'type' : 'Collection(Edm.String)' },
'results': ['value1', 'value2']
}
}
在运行以上有效负载时,接收An open collection property 'Multichoicefield' was found. In OData, open collection properties are not supported.", "400 Client Error: Bad Request for url:
似乎OData停止支持此功能。有谁知道如何用多项选择栏创建]]>
我正在使用Python sharePoint在线库-Office365-REST-Python-Client创建新的列表项。我能够成功创建新列表。当我尝试使用多选字段(...