Skip to main content
Solved

$filter with multiple conditions using or parameter in REST API

  • March 2, 2022
  • 1 reply
  • 2783 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.

 

 

Best answer by praveenpo

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

 

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

1 reply

praveenpo
Semi-Pro II
Forum|alt.badge.img+3
  • Semi-Pro II
  • 99 replies
  • Answer
  • March 4, 2022

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


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