I am new to GP. I am trying to create a purchase order using the web services. What are the required fields needed. Right now I create it like this:
Public Sub CreatePurchaseOrder(ByVal shipToAddress As BusinessAddress,
ByVal billToAddressKey As AddressKey,
ByVal purchaseOrderLines As PurchaseOrderLine(),
ByVal venKey As VendorKey,
ByVal venName As String,
ByVal poDate As Date,
ByVal custKey As CustomerKey)
Dim po As PurchaseOrder = New PurchaseOrder
po.BillToAddressKey = billToAddressKey
po.Lines = purchaseOrderLines
po.ShipToAddress = shipToAddress
po.VendorKey = venKey
po.VendorName = venName
po.Date = poDate
po.CustomerKey = custKey
po.Type = PurchaseOrderType.Standard
Dim cxt As Context = getContext()
Dim poPol = wsDynamicsGP.GetPolicyByOperation("CreatePurchaseOrder", cxt)
wsDynamicsGP.CreatePurchaseOrder(po, cxt, poPol)
End Sub
*This post is locked for comments