Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Unanswered

Dynamics 365 BC - Using the REST API to receive and invoice a PO (Microsoft.NAV.receiveAndInvoice)

Posted on by
I am trying to use the /receive and invoice/ bound action to do multiple partial invoicings against the same PO.
Based on the discussion here, it looks like I need to modify the PO first to define the data that will be present on the invoice that gets created. However, the vendorInvoiceNumber property is not exposed on the PO so it is not possible to do the action more than once, as second attempts will return the following error:
{
    /error/: {
        /code/: /Application_DialogException/,
        /message/: /Purchase Invoice XXXXX already exists for this vendor.  CorrelationId:  4e3044d5-5c8b-4d69-bc3a-8db1dc533e3f./
    }
}
 
Are you aware of the proper way to do this exclusively through the standard REST API?
Categories:

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!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans