Sign Up Now!Log In
Joel 10/20/2011 1:01:35 PM

Web Services - CreatePurchaseInvoice

* This article, and all our great Web Services documentation, Is available on the Web Services menu
This is a complete code example of how to code a Purchase Receipt in Web Services

The main call here is this line:

' Create the purchase invoice
    wsDynamicsGP.CreatePurchaseInvoice(purchaseInvoice, context, purchaseReceiptCreatePolicy)
Catch ex As System.ServiceModel.FaultException
    Throw ex
Catch ex As Exception
    Throw ex
End Try

This is a complete class, just create a class in Visual Studio called CreatePurchaseReceipt and drop it in. You'll need to edit the PO number, item number, etc.

Version: GP 2010
Section: Web Services