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

Announcements

No record found.

News and Announcements icon
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
    Microsoft Employee 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
    Microsoft Employee 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

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,857 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,047 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 959 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans