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?
If the functionality you need in the standard API's is not filling your requirements you can create a custom API with the functionality needed.
questo è l'api che crea una fattura di acquisto
learn.microsoft.com/.../dynamics_purchaseinvoice_create
per il primo punto guarda questo
community.dynamics.com/.../business-central-api-create-a-purchase-invoice-with-tax
check my answer if it helped you, thanks
DAniele
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,228 Super User 2024 Season 2
Martin Dráb 230,056 Most Valuable Professional
nmaenpaa 101,156