Solved

$filter with multiple conditions using or parameter in REST API

  • 2 March 2022
  • 1 reply
  • 2039 views

Hi there! We have been facing an issue related to MYOB Advanced ERP (Accumatica) Filter($filter) option.
When used $filter parameter in REST API, pass multiple conditions with 'or' operator.
Like this in URL '$filter=CustomerID eq '21FEBUSER' or CurrencyRateType eq 'SPOT' which gives us this error:

"exceptionMessage": "Only AND logical operator is supported",
"exceptionType": "System.NotSupportedException"

Is there any solution/api/help available to get multiple record in single request to pass multiple condition from Acumatica ERP in REST URL.

 

 

icon

Best answer by praveenpo 4 March 2022, 18:35

View original

1 reply

Userlevel 6
Badge +3

hi @junaidbasit,

As per my understanding acumatica does not support ‘or’ condition. Have to make two different calls.

Even in the help document it has only AND condition example.Please go through it and see if you can find anything.

https://help-2021r2.acumatica.com/(W(2))/Help?ScreenId=ShowWiki&pageid=f279ec05-2f71-4376-a76f-d3ed0e0e2556

 

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