Skip to main content
Answer

ODATAv4 IN Clause NOT WORKING

  • March 18, 2024
  • 3 replies
  • 83 views

abhijit
Varsity I
Forum|alt.badge.img

I am trying to filter the data coming in from acumatica using an IN CLAUSE on the PMTask object.

My URL Looks like this

{{acumaticaurl}}/odatav4/PX_Objects_PM_PMTask?$format=json&filter=ProjectID in (683,684,687,686,685)&$select=ProjectID, TaskCD, TaskID,NoteID, ExtRefNbr,Description

No matter, what changes I do to the filter, it is fetching all the tasks from the database. How do I get the IN filter to work?

Edit:
The same syntax is working on the PMCostBudget object. The operation filters the records being fetched.

{{acumaticaurl}}/odatav4/PX_Objects_PM_PMCostBudget?$format=json&$filter=ProjectID in (683, 684, 687, 686, 685)&$select=ProjectID, Type, Qty, UOM, CuryUnitRate, Rate, CuryAmount


Thanks in advance!

 

Best answer by abhijit

Hi @abhijit  - Can you share your solution with the community? Thank you!

Hi @Chris Hackett, There is no problem. The issue is with the URLs. A colleague pointed out that the first URL is missing the $ sign before the filter

3 replies

abhijit
Varsity I
Forum|alt.badge.img
  • Author
  • March 20, 2024

Nevermind, I figured this out.


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • March 20, 2024

Hi @abhijit  - Can you share your solution with the community? Thank you!


abhijit
Varsity I
Forum|alt.badge.img
  • Author
  • Answer
  • March 20, 2024

Hi @abhijit  - Can you share your solution with the community? Thank you!

Hi @Chris Hackett, There is no problem. The issue is with the URLs. A colleague pointed out that the first URL is missing the $ sign before the filter