Hi everyone,
Is it possible to perform an action (say release order), after an order is created trough API? I can release the order after one salesLine on OnInsert trigger, but not after multiple lines are posted.
Would appreciate any insight.
Thanks.
0
Answers
The service creating the order would call an extra endpoint with function "Release".
If it's not possible to modify the external service, you could set up a Job Queue - save the session and user ID when creating the order, and then check if the session no longer exists. If it's not there, then the call was finished and you can release the order. This, of course, assumes that both header and lines are created in a single call.