Hi, I've been working with the REST API (api.businesscentral.dynamics.com/v2.0) for a while now, and so far I've found two operations that cannot be performed using this API, so I end up using PowerAutomate to do it, which works fine, but I would prefer to do everything with just one API.
I just want to confirm these things definitely cannot be done with the REST API and it's not that my knowledge is out of date...
1) I need to create Purchase Invoices with taxes. I cannot specify the tax amount, nor the tax area code (which would correspond to a pre-configured percentage). So I end up using PowerAutomate "Update Record" action and I can directly specify the tax area code per line. My previous inquiry on this was here (https://community.dynamics.com/business/f/dynamics-365-business-central-forum/473036/business-central-api-create-a-purchase-invoice-with-tax) and somebody else also suggested using a custom API.
2) I need to Post a Purchase Invoice so it is Open in the system. I cannot find in the REST API how to do this, so again I use PowerAutomate can I can run a purchaseInvoice-post action:
Can anyone confirm that the above two operations can definitely not be done with the REST API? If they can be, can you please point me to the right documentation?