Hello community, good afternoon. I am needing to do the following:
* An invoice is being registered with its detail lines but I need to control a little when creating the invoice. It turns out that when I create the invoice (Entity 1) then the invoice lines
(Entity 2) will be created; but if there is an error when creating records in entity 2, HOW COULD I MAKE A ROOLBACK or how I can implement a COMMIT at the end of the method,
so that no record is inserted. I am using the Business Central web api (salesInvoices and salesInvoiceLines)
Will you have an example that you can share with me to achieve that functionality?
IMAGE 01 (the first method created the invoice, and the second method created the lines of the invoice)
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.
Thanks.