Joel
4Penny.net
Points: 10550

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
Try
    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.

4Penny.net
Version: GP 2010
Section: Web Services
Table Definition Quick Links
All Tables
SOP Tables
RM Tables
GL Tables
POP Tables
HR Tables
PM Tables
UPR Tables
IV Tables
Olympic Tables
3