Skip to Content
0

Updating Tracking No. on Delivery Notes via SDK

Jun 28, 2017 at 02:16 PM

70

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

DIEGO LOTHER Jun 28, 2017 at 02:29 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded