0

I'm trying to use OpenAPI to fetch data from Acumatica.The filter is barcode in CROSS-REFERENCEEimage. It's unable to fetch data(before change) because

 "The parent value for a property access of a property 'AlternateID' is not a single value. Property access can only be applied to a single value."

I did some research and find a same question(OData $filter with items in a $expand). I changed(after change) my request but still get

"exceptionMessage": "The method or operation is not implemented." error.

I really know nothing about OData and C#.I use JAVA/NODEJS to fetch data. Can someone give me any suggestion? Thanks a lot.

Helen
  • 87,344
  • 17
  • 243
  • 314
larryly
  • 1
  • 2
  • This works for me: ``https://localhost/entity/Default/20.200.001/StockItem?$expand=CrossReferences&filter=AlternateType%20eq%20'BAR'%20and%20AlternateID%20eq%20'1234567890'`` – Deetz Jan 05 '21 at 21:24
  • Deetz, If you add a $ to your filter command it errors out. Without it it just ignores it. – Patrick Chen Jan 05 '21 at 22:14
  • @PatrickChen - I see that. I went down the same path as OP and it seems perhaps Acumatica doesn't support that sort of filtering. It's not in the docs at least. – Deetz Jan 06 '21 at 17:40
  • May be the only way is create a GI. – larryly Jan 07 '21 at 21:25

1 Answers1

0

You can't do it this way.

Acumatica doesn't support filtration over the detail records. Instead, you can create a new GI that will contain the information from the Inventory Item and corresponding Alternate IDs and request the records from that GI.

enter image description here

Samvel Petrosov
  • 7,580
  • 2
  • 22
  • 46