Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get OrderID

Status
Not open for further replies.

johnbritto

Programmer
Jun 17, 2003
7
US
Hi Guys,

I want to know if I can get the Order Number after I Created an order using the XAPI.

Thanks for ur help

John
 
Yes, after the order has been inserted or updated you just need to assign the correct field to whatever (variable or control). Here is an example for reteiveing the newly assigned batch number.


With ARINVOICEbatch
.Init
.Fields("BTCHDESC").value = m_udtDefaults.baBatchDesc & " " & Format(Date, "yyyy-MM-dd")
.Fields("BTCHTYPE").value = 2 '// Imported.
.Fields("INVCTYPE").value = 2 '// Summary.
.Update
<my variable> = .Fields(&quot;CNTBTCH&quot;).value
.Cancel
End With


Thanks and Good Luck!

zemp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top