Question

Update Production Order Detail Operations via Rest API

  • 30 August 2023
  • 5 replies
  • 152 views

We produce custom products and need to update the production order details operations and materials for every order to account for the material differences.  Using the rest API the PUT returns a 200, but the the data for the operations for the production order details is not updated. 

The production order when it is created has extra operations that need to be removed to accurately show the custom work centers

  • How can the production order work centers be updated via the API?
  • How can the materials be updated via the API?

5 replies

Userlevel 7
Badge +4

@bvoelsch 

There isnt much information provided to provide specific help, however I created a custom endpoint entity for AM209000 screen as follows:

 

then mapped the top level fields:

 

Mapped Operation object and fields:

 

Used this endpoint to get a Production order:

Here's same order in UI:

 

From here, you could use this Endpoint to perform(CRUD) desired operations.

All the best.

@RohitRattan88 I am not seeing the screens that you shared.  Looks like they are linked to internal.acumatica.com

 

<img alt="" src="https://internal.acumatica.com/(W(450))/Frames/GetFile.ashx?fileID=a6a11141-bfc0-445f-bad5-f89968ac63a2">

Userlevel 7
Badge +4
created a custom endpoint entity for AM209000 screen as follows:
Field Mapping
Tab mapping
tab field mapping
Postman call using this entity
same order in UI

 

Finally figured it out.  There is no need for a custom endpoint to make this work.  First you need to get the production order using https://acumatica.com/entity/Manufacturing/21.200.001/ProductionOrderDetail/{production_order_id}?$expand=Operations to get all the work centers.  Then you need to iterate over the work centers adding a new attribute “delete” = true for the ones to remove and PUT the object back to the endpoint.

Userlevel 7
Badge

Thank you for sharing your solution with the community @bvoelsch!

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