Web API过滤器上的选项值值

发布于 2025-02-09 10:45:43 字数 368 浏览 2 评论 0原文

我需要在ID上代替选项集值过滤 For example, the entityfield is 'my_choices' and has three optionsetvalues:

  • One (9487500)
  • Two (9487501)
  • Three (9487502)

I have tried ?$filter=(my_choices/Value eq 'Two')

But this does not work... (Could not find a property named 'Value' on type 'Edm.Int32')

Is this even possible?

I need to filter on an optionset Value in stead of on the Id
For example, the entityfield is 'my_choices' and has three optionsetvalues:

  • One (9487500)
  • Two (9487501)
  • Three (9487502)

I have tried ?$filter=(my_choices/Value eq 'Two')

But this does not work... (Could not find a property named 'Value' on type 'Edm.Int32')

Is this even possible?

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

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

发布评论

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

评论(1

迷爱 2025-02-16 10:45:43

据我所知,我知道您无法根据其本地名称过滤optionset值。

您将在响应您的请求时获得本地化名称。

As far as I have seen and I know you cannot filter optionset Value based on it's localized name.

You will get localized name in response of your request.

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