Skip to main content
Solved

Blanket Sales Order: how to create child orders via API?

  • Sep 4, 2024 5:47 PM UTC
  • 4 replies
  • 143 views
  • Translate All

Forum|alt.badge.img

How is it possible to invoke the “Create Child Orders” action using the REST API?

Best answer by praveenpo

Hi @dominicfedco,

Yes, it is possible. Actions can be invoked through REST API.

Please go through the link below you can find the example.

https://stackoverflow.com/questions/56432870/acumatica-rest-api-endpoint-action-call-fails

View original

4 replies

praveenpo
Semi-Pro III
Forum|alt.badge.img+3
  • Semi-Pro III
  • Answer
  • Sep 5, 2024 2:08 AM UTC

Hi @dominicfedco,

Yes, it is possible. Actions can be invoked through REST API.

Please go through the link below you can find the example.

https://stackoverflow.com/questions/56432870/acumatica-rest-api-endpoint-action-call-fails

Translate

Forum|alt.badge.img
  • Author
  • Freshman II
  • Sep 5, 2024 12:16 PM UTC

Thanks for the reply @praveenpo!

 

The “Web Service Endpoints” screen lists several actions for the /SalesOrder endpoint, but “Create Child Orders” is not among them.

Perhaps the endpoint needs to be extended in order to map this action?

Translate

praveenpo
Semi-Pro III
Forum|alt.badge.img+3
  • Semi-Pro III
  • Sep 5, 2024 12:18 PM UTC

Yes @dominicfedco , you can extend the endpoint and add the action.
 

Translate

Forum|alt.badge.img
  • Author
  • Freshman II
  • Sep 5, 2024 12:51 PM UTC

I was able to successfully invoke the action using the REST API after extending the SalesOrder entity to map the CreateChildOrders action. Thank you, @praveenpo!

Translate