Table of Contents

Add Label Actions

The label actions are what determine where a label can be printed from. There are two types of actions:

  • From Record: A Print to SENTINEL action will be available from the pages that correspond to the selected table.

  • From Event: A certain action will automatically print a label.

If you need to add an action, for example if you have custom tables, you will need to add an action here. If you manually add an action, you also need to customize the code to add the Print to SENTINEL action to a page or to add the event that will trigger the label to print.

Important

Adding a label action requires changing the code. If you need help with this, please contact our Support team.

If you are adding actions for the Material Staging app, see Add Label Actions for Material Staging

Add From Record action

  1. Choose the icon, enter Label Actions, and then choose the related link.

  2. On the Label Actions page, select Add Label Action.

  3. On the Add Label Action page, populate the following fields:

    Field Description
    Label Action Type Select From Record.
    Table Name Select the table that corresponds to the pages you want to print labels from.
  4. Select OK.

  5. Add the action to the appropriate pages.

    This requires changes to the code. If you need help with this, please contact our Support team.

    1. Select the table you just added.

    2. Select Get AL Snippet on the line.

    3. Copy the code for either multi-record pages or single-record pages.

    4. Add the code to the appropriate page to add the Print to SENTINEL action.

Add From Event action

When adding a From Event action, the subscriber function needs to be set up before you start. If you need help with this, please contact our Support team.

  1. Choose the icon, enter Label Actions, and then choose the related link.

  2. On the Label Actions page, select Add Label Action.

  3. On the Add Label Action page, populate the following fields:

    Field Description
    Label Action Type Select From Event.
    Subscriber Function

    Select the event you subscribed to for printing labels.

    Only events that have at least one parameter of type record (has a defined table) can be used for label actions.

    Note: On the Event Subscriptions page, the Subscriber Codeunit ID field is automatically filtered to the 50,000 to 99,999 range. You can clear the filter if needed.
    Table Name Select the table that corresponds to the page that will trigger the print action.
  4. Select OK.

  5. Add additional tables that will trigger the print action.

    1. Select the action you just added.

    2. Select Related > Label tables.

    3. On the Label Action Tables page, populate the following field:

      Field Description
      Table No. Select the table that corresponds to the page that will trigger the print action.
    4. Close the page.

      The tables are listed in the Label Action Tables FactBox.

  6. Add the event to the appropriate pages.

    This requires changes to the code. If you need help with this, please contact our Support team.

    1. Select the action you just added.

    2. Select Get AL Snippet on the line.

    3. Copy the code.

    4. Add the code to the appropriate subscriber to add the event.