Skip to main content

Notifications

Business Central forum
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?

Helpful resources

Quick Links

Dynamics 365 Community Update

Welcome to the inaugural Community Platform Update. As part of our commitment to…

Dynamics 365 Community Newsletter - August 2024

Catch up on the latest D365 Community news

Community Spotlight of the Month

Kudos to Mohana Yadav!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,115 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 227,971 Super User 2024 Season 2

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans