Happy New Year!! and hope every one of you is going to have a good one. I am trying to add a Purchase Order using DI Server in VB.Net. Here is what I have done so far.
Dim posService = New PurchaseOrdersService.PurchaseOrdersService()
'// Create MsgHeader Class
' posService.MsgHeaderValue pmsgHeader As New posservice.
Dim xmsgHeader As PurchaseOrdersService.MsgHeader = New PurchaseOrdersService.MsgHeader()
xmsgHeader.SessionID = SessionID
xmsgHeader.ServiceName = PurchaseOrdersService.MsgHeaderServiceName.PurchaseOrdersService
msgHeader.ServiceNameSpecified = True
posService.MsgHeaderValue = xmsgHeader
'// Fill with Data
Dim oPurchaseOrder = New PurchaseOrdersService.Document
oPurchaseOrder.CardCode = txtSupplier.Text
oPurchaseOrder.CreationDate = DateTime.Now
oPurchaseOrder.DocNum = txtDocNumber.Text
oPurchaseOrder.HandWritten = PurchaseOrdersService.DocumentHandWritten.tYES
oPurchaseOrder.DocumentLine() '//This does not work
</code>
I get stuck when I try to add the lines on the Purchase Orders Service. Any suggestions do I have to use the Orders Services. Are Sales Opportunities exposed through di server web services?
Regards
Ben
Greeru2019s Third Law of Computing: A computer does what you tell it to do, not what you want it to do.