Solved

How to add a filter/parameter to an Extended EndPoint

  • 30 March 2021
  • 1 reply
  • 158 views

Userlevel 2

Hi, 

I have extended Default/18.200.001 endpoint to include SubContracts like this http://localhost/test/entity/Subcontracts/18.200.001/Subcontracts/

 

I can retrieve all Subcontracts, but I would like to filter to get 1 SubContract back as it will hit the max size limit eventually.

 

Is there a way to do this like its possible to do with Vendors http://localhost/[sitename]/entity/Default/17.200.001/Vendor/AAVENDOR?$expand=MainContact ?

 

Additional notes:

This is what I have currently and it works except it returns all subcontracts

http://localhost/test/entity/Subcontracts/18.200.001/Subcontracts/

 

I would like to have it working like vendors to filter to a subcontract like so

http://localhost/test/entity/Subcontracts/18.200.001/Subcontracts/SC00001 to retrieve only subcontract SC00001

and 

http://localhost/test/entity/Subcontracts/18.200.001/Subcontracts/SC00001?$expand=DocDetails to retrieve only subcontract SC00001 and expand DocDetails.

 

Thanks in Advance

Mark

 

icon

Best answer by mwong11 31 March 2021, 20:01

View original

1 reply

Userlevel 2

I have figured it out.

In case others run into this, just insert a Detail object like so. 

 

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