Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

Confirming availability of some operations in REST API

Posted on by 101

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:
Screenshot_5F00_20230210_5F00_151551.png


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?

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 on at
    RE: Confirming availability of some operations in REST API

    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.

    learn.microsoft.com/.../devenv-develop-custom-api

  • Suggested answer
    DAnny3211 Profile Picture
    DAnny3211 9,272 Super User 2024 Season 1 on at
    RE: Confirming availability of some operations in REST API

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,228 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,056 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans