Web API过滤器上的选项值值
我需要在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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知,我知道您无法根据其本地名称过滤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.