
Hi All,
I have a requirement to create 100K Sales order, its fulfillment, and payment settlement in BC through some custom logic. So, I have written SOAP endpoints and then perform SO Create, then fulfillment, and then payment settlement in sequence.
Now there is a good chance, due to any config issue or logical error, SO Create operation complete successfully but its error comes in the fulfillment process. Is there any way, we can implement transactions so that system automatically rollbacks everything for a particular order?
Also, how can we use TryFunction in this situation as the documentation says, we should not use DB write calls in TryFucn()
docs.microsoft.com/.../devenv-handling-errors-using-try-methods
Regards,
Saboor Ahmed
Hello - We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist. If you need assistance with debugging or coding I would recommend discussing this on one of our communities.
dynamicsuser.net/.../developers
I will open this up to the community in case they have something to add.