Skip to main content

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

  • April 25, 2024
  • 3 replies
  • 185 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.

Did this topic help you find an answer to your question?

3 replies

Forum|alt.badge.img+2

@OzVerum 

 


  • Author
  • Freshman I
  • 2 replies
  • April 28, 2024

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. ))

 

 


  • Author
  • Freshman I
  • 2 replies
  • May 5, 2024

 Hi @ruchikasharma23 ,

 

Could you please help me with invoices, how could I get OrderNbr in the call API invoice? I tried to $expand Details, but it provides data for inventory items those are related Sales Order, but not the Order number as well, or any hint how could I link Invoices with SalesOrders all together?

 

Thank you in advance. 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings