web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Updating Purchase Invoice from API

(0) ShareShare
ReportReport
Posted on by 50

Hello, 

Has anyone been able to update a purchase invoice from an API? I am trying to use the following documentation to do it but it keeps throwing a bad request error at me

https://docs.microsoft.com/en-us/dynamics-nav/api-reference/v2.0/api/dynamics_purchaseinvoice_update

I am using the HTTP with Azure AD connector in flow using the "invoke a HTTP request" action.

TIA

Spencer

I have the same question (0)
  • Chameera Kavinda Profile Picture
    510 on at

    Hi,

    Check whether there are unditable or flowfields in your json. You connot update those fields. And also for the option fields use format() function when you assign values. 

    Thanks.

  • Spencer A-C Profile Picture
    50 on at

    Hi Chameera,

    Thanks for the reply, but the fields are just date fields so are editable and I always use formatting with dates so it's not that.

    Kind regards

  • Suggested answer
    Marco Mels Profile Picture
    on at

    Hello,

    Did you test with Postman and are there errors shows in that test as well?

    Thanks.

  • Spencer A-C Profile Picture
    50 on at

    Hi,

    I've not tested with postman due to the fact that the API needs a token for the authentication which can be annoying to get in postman but the Azure AD connector gives you this instantly. Instead I've created a simple flow that is manually triggered and just has the one action to update the purchase invoice.

    Thanks

  • Suggested answer
    Marco Mels Profile Picture
    on at

    Hello,

    Okay, thank you. Postman can be helpful when troubleshooting issues like this one. Feel free to raise a support ticket if you do not get further tractions from the community.

    Thanks.

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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,573

#2
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 773 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 760 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans