Skip to Content

Updating Tracking No. on Delivery Notes via SDK

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.?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jun 28, 2017 at 02:29 PM

    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

    Add comment
    10|10000 characters needed characters exceeded