How to Retrieve a Document

Top  Previous  Next

The following example calls the GetFirstEntity() function in the Customer class to retrieve the first record.

 

' Create an instance of the Web Service

Dim ws As New WebServices.CustomerInvoiceWebService()

StdLib.PopulateObjAcctSoapHeader(ws, Session("LoginKey"))

 

Dim ds As DataSet

 

' The RowID of the Accounts Receivable account.

Dim arAccountIDRowID As String = "12.0"

 

ds = ws.GetDocumentByDocumentID(ID,arAccountIDRowID, "", "", ReturnType.Extended)

 

See: GetLoginKey(),RowIDs, ReturnTypes, Documents and Entities