Solved

Error Getting Attachments for a Purchase Order

  • 16 May 2021
  • 1 reply
  • 71 views

I’m following the example in Lesson 3.1 of the I310 training course.  But instead of retrieving attachments of a Stock Item, I want the attachments of a Purchase Order.  In Postman, I’m performing a GET to:

https://localhost/PhoneRepairShop/entity/Default/20.200.001/PurchaseOrder/000001?$select=OrderNbr,files&$expand=files

 

The response is: Operation is not valid due to the current state of the object.

 

This happens for both open and closed purchase orders.   Am I missing something?

 

icon

Best answer by Dmitrii Naumov 17 May 2021, 22:11

View original

1 reply

Userlevel 7
Badge +5

There are two key fields for purchase order.

Type and OrderNbr which one must specify in the uri.  So, it should be:

 

https://localhost/PhoneRepairShop/entity/Default/20.200.001/PurchaseOrder/Normal|000001?$select=OrderNbr,files&$expand=files

 

assuming its type normal purchase order.

 

Thanks

 @nmansinha 

 

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