06-28-2017 3:16 PM - edited 02-03-2024 11:47 PM
Hi Guys,
Im looking for some assistance. I need to update the tracking number field on a delivery note, I'm told this is possible via the DI API.
Can someone please point me in the right direction of samples code of a similar code etc.?
Hi Jordan,
Use the property TrackingNumber from Document object.
A sample:
Documents oDoc = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDeliveryNotes);
if (oDoc.GetByKey(75))
{
oDoc.TrackingNumber = "11";
if (oDoc.Update() != 0)
{
MessageBox.Show(oCompany.GetLastErrorDescription());
}
}
Kind Regards,
Diego Lother
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.