Microsoft预订图API无效过滤条款

发布于 01-24 14:27 字数 887 浏览 4 评论 0 原文

我尝试过滤Microsoft预订WebAPI客户端点( https://learn.microsoft.com/en-us/graph/api/bookingbusiness-list-customers?view = graph = graph-rest-1.0 )使用1.0 c#Graph SDK基于客户电子邮件属性,但是查询总是使用无效的滤波器子句失败。 这是过滤器表达式:

var filterexpression = $"emailAddress eq '[email protected]'";

这是使用它的查询:

            var customersCollection = await Resilience.Retry(() => _serviceClient.Solutions.BookingBusinesses[bookingbusiness].Customers
                .Request().Filter(filterexpression)
                .GetAsync());

在预订API端点上支持的过滤,如果是,这里出了什么问题?

I try to filter Microsoft Booking webapi customer endpoint (https://learn.microsoft.com/en-us/graph/api/bookingbusiness-list-customers?view=graph-rest-1.0) using the 1.0 C# Graph SDK based on customer email attribute, but the query always fails with invalid filter clause.
This is the filter expression:

var filterexpression = 
quot;emailAddress eq '[email protected]'";

This is the query which using it:

            var customersCollection = await Resilience.Retry(() => _serviceClient.Solutions.BookingBusinesses[bookingbusiness].Customers
                .Request().Filter(filterexpression)
                .GetAsync());

Is filtering supported on bookings api endpoints, and if yes, what is went wrong here?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

油饼 2025-01-31 14:27:26

来自属性支持过滤。

其他属性,例如 displayName emailAddress 地址手机现在无法过滤。

From the test in Graph Explorer only id property supports filtering.

Other properties like displayName, emailAddress, addresses and phones are not filterable right now.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文