---
title: "Extend the Package Worksheet in Dynamic Ship to Display Custom Data Fields"
app: "Dynamic Ship"
section: "Developer"
last_updated: "2026-05-21"
url: "https://insight-works.com/kb/dynamic-ship/extend-the-package-worksheet-in-dynamic-ship-to-display-custom-data-fields/"
---

# Extend the Package Worksheet in Dynamic Ship to Display Custom Data Fields

Note: For instructions on how to use the Package Worksheet, please see [_Use the Package Worksheet in Dynamic Ship_](/kb/dynamic-ship/use-the-package-worksheet-in-dynamic-ship/). Note: You can locate everything can be found in the codeunit DSHIP Event Publisher. [See the example here](https://dev.azure.com/InsightWorks/External%20Examples/_git/Dynamic%20Ship%20Examples?path=/Custom%20Data%20in%20Package%20Worksheet). The example code also details additional events which can reduce lines loaded, alter the data beforehand, or take complete control of the creation process.

This article demonstrates how to extend the Package Worksheet in Dynamic Ship to display custom data fields. This could be any piece of data related to the order line, item, or anything custom you may have in your process.

### Example scenario

A company wants to display a custom field from the Sales Line on the Package Worksheet so that packers can see additional shipping instructions.

The objectives are:

- Retrieve the custom field from the Sales Order.
- Pass the value into the Package Worksheet context.
- Display the value to the user while packing items.

#### Implementation

##### Create a table extension

Add a custom field to the DSHIP Package Line Buffer (can also be a flowfield):

```
tableextension 80308 "IW EG Package Line Buffer Ext." extends "DSHIP Package Line Buffer"
{
    fields
    {
        field(80301; "IW EG Additional Notes"; Text[250])
        {
            Caption = 'Additional Notes';
        }
    }
}
```

This field stores the additional notes for the item.

##### Extend the Package Worksheet Page

```
pageextension 80308 "IW EG Package Worksheet Ext." extends "DSHIP Package Worksheet"
{
    layout
    {
        addafter(Description)
        {
            field("IW EG Additional Notes"; Rec."IW EG Additional Notes")
            {
                ApplicationArea = All;
                ToolTip = 'Additional notes.';
            }
        }
    }
}
```

This adds the additional notes to the worksheet interface.

Create a page extension to display the custom data:

##### Populate the Field

 Note: If your field is a flowfield, this step is not necessary.

Use an event subscriber to load the value from the related Sales Order. Example:

```
[EventSubscriber(ObjectType::Codeunit, Codeunit::"DSHIP Event Publisher", 'OnAfterLoadLineBuffer', '', true, true)]
    local procedure HandleOnAfterLoadLineBuffer(recRef: RecordRef; var lineBuffer: Record "DSHIP Package Line Buffer" temporary)
    begin
                if (lineBuffer.FindSet(false)) then begin
            repeat
                lineBuffer."IW EG Additional Notes" := 'Notes here';
                lineBuffer.Modify(false);
            until (lineBuffer.Next() = 0);
        end;
    end;
```

This ensures the custom field is populated when the order is loaded into the Package Worksheet.

#### Result

When a user opens the Package Worksheet for a Sales Order:

- The system loads the order,
- custom data is retrieved, and
- the field is displayed on the worksheet page.

Warehouse staff can now see important information during packing.
