URI中指定的键数与资源的键属性数不匹配';microsoft.graph.Booking应用程序
我们正在尝试将图形API用于预订应用程序。事实上,我们正在定制 microsoft示例中的C#代码: 我们在Azure中配置了应用程序注册和所有权限。 使用BookingsSampleNativeConsole,我们可以查询graphService.BookingBusiness 如下图所示 var graphService=新的graphService(graphService.ServiceRoot, ()=>authenticationResult.CreateAuthorizationHeader()) 不幸的是,没有其他实体被填充。因此,我们使用以下内容来查询预约:URI中指定的键数与资源的键属性数不匹配';microsoft.graph.Booking应用程序,graph,microsoft-graph-api,odata,microsoft-graph-sdks,Graph,Microsoft Graph Api,Odata,Microsoft Graph Sdks,我们正在尝试将图形API用于预订应用程序。事实上,我们正在定制 microsoft示例中的C#代码: 我们在Azure中配置了应用程序注册和所有权限。 使用BookingsSampleNativeConsole,我们可以查询graphService.BookingBusiness 如下图所示 var graphService=新的graphService(graphService.ServiceRoot, ()=>authenticationResult.CreateAuthorization
Uri appointUri = new Uri("https://graph.microsoft.com/beta/bookingBusinesses/{id}/appointments");
var appointParams = new UriOperationParameter[]
{
new UriOperationParameter("start", "2020-08-01T00:00:00Z"),
new UriOperationParameter("end", "2020-08-31T00:00:00Z")
};
var resp=graphService.Execute(appointUri,“GET”,appointParams)
但这个电话返回:
处理此请求时出错。-->
Microsoft.OData.Client.DataServiceClient异常:
{
"error":
{
"code": "BadRequest",
"message": "The number of keys specified in the URI does not match number of key properties for the resource 'microsoft.graph.bookingAppointment'."
}
}
你知道我们在任命参数上遗漏了什么或错了什么吗?
提前谢谢
(2) 用于预订的Graph API已经测试了相当一段时间了。有什么想法吗
版本1.0的可能发布日期是什么时候
Ajit19