【发布时间】:2017-08-07 22:11:18
【问题描述】:
查看此处提供的示例 (https://github.com/SharePoint/PnP-JS-Core/wiki/Working-With:-Items)
我试图清除(更新)它不清除的多用户字段。我错过了什么?我尝试将其设置为 null 或空数组均因错误请求而失败。
pnp.sp.web
.lists.getByTitle('Agreements')
.items.getById(agreement.Id)
.update({
Notes: 'Notes go here..',
// Clear Multi User Approver Field.
CurrentApprover: { results: [] },
})
.then((result) => {
resolve({ result: true });
}).catch((e) => {
console.log(e);
});
【问题讨论】:
标签: sharepoint sharepoint-online