How could I use OData in function in $filter query ?

  • 26 April 2024
  • 2 replies
  • 41 views

Hi @ruchikasharma23 @Laura02 , hope you’re well guys,

 

Could you please refer or help me, how I could use OData in function in $filter query ?

here is my query Customer?%24filter=CustomerID%20in%20(%270000003%27%2C%20%270000004%27%2C%20%270004737%27)' and it always produced this error message"Syntax error at position 13 in 'CustomerID in ('0000003', '0000004', '0004737')'.", I know I could use this approach such as  $filter=CustomerID eq '0000003' or CustomerID eq '0000004' or CustomerID eq '0004737', but in case the ids list will be long it’s definitely the best approach to use “IN” list function. Please help me with. Thanks in advance.


2 replies

Userlevel 5
Badge +2

@OzVerum 

 

Hi @ruchikasharma23 ,

 

Thank you for this clarification, and nope, I need a filter for IDs list, but that’s good I will continue use “OR” for this, probably they will add this feature in the future release, it will be really handy to have it. ))

 

 

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved