目前在图形API v1.0端点上,使用以下网址修补具有多个属性的联系人扩展程序失败:
PATCH / users / {id | userPrincipalName} / contacts / {id} / extensions / {extensionId}
或者
PATCH / users / {id | userPrincipalName} / contactfolders / {id} / contacts / {id} / extensions / {extensionId}
以前,在修补扩展数据时,您可以为extensionId修补多个属性值,如下所示:
{
"@odata.type": "Microsoft.OutlookServices.OpenTypeExtension",
"extensionName": "Com.Contoso.Estimate",
"companyName": "Contoso",
"expirationDate": "2016-07-30T11:00:00.000Z",
"DealValue": 1010100,
"topPicks": [
"Employees only",
"Add spouse or guest",
"Add family"
]
}
参考网址:https://graph.microsoft.io/en-us/docs/api-reference/v1.0/api/opentypeextension_update
此功能似乎自昨天以来发生了变化,并发生以下错误:
{
"error": {
"code": "BadRequest",
"message": "Cannot update multiple extensions in a request.",
"innerError": {
"request-id": "164fba2a-003f-40b6-97cd-0f139f23345d",
"date": "2017-02-21T20:57:03"
}
}
}
现在您需要按如下方式执行多个调用:
{
"@odata.type": "Microsoft.OutlookServices.OpenTypeExtension",
"extensionName": "Com.Contoso.Estimate",
"companyName": "Contoso"
}
…
{
"@odata.type": "Microsoft.OutlookServices.OpenTypeExtension",
"extensionName": "Com.Contoso.Estimate",
"expirationDate": "2016-07-30T11:00:00.000Z"
}
…
{
"@odata.type": "Microsoft.OutlookServices.OpenTypeExtension",
"extensionName": "Com.Contoso.Estimate",
"DealValue": 1010100
}
…
{
"@odata.type": "Microsoft.OutlookServices.OpenTypeExtension",
"extensionName": "Com.Contoso.Estimate",
"topPicks": [
"Employees only",
"Add spouse or guest",
"Add family"
]
}
v1.0端点最近是否在此上下文中更改了其功能?
答案 0 :(得分:0)
这是一个临时服务问题,仅影响Office 365数据扩展。该问题已得到确认和纠正。