Hello,
There is scenario where I make two sales orders during a process, and I have to post them right away. If the system fails to post any of them under any circumstances, I would like it to roll back entirely.
How can I use the Business Central platform (AL Code) to accomplish this?
Please share your knowledge about it.
Kindly, ignore this topic if you have already gone through the same question in the Dynamics 365 Community forum.
Regards,
SB
Now or Never
0
Answers
This way if any error occurs during the hole process, the rollback do not create, modify, delete, any registers in the database
> Exactly the same approach I have already implemented.
Has this worked?
My understanding is you have some piece of code (bespoke) that fails sometimes but the document has already been posted. I would review if you have your piece of code in the right place as it should happen before any commits, it would rollback by default.
It seems working fine