Skip to content

Package Labels#

Overview#

The Label Interface – LIF functionality provides a way for you to transmit data structures that store item-related information supplied by Microsoft Dynamics 365 Business Central1 to a label design and print program.

After the structures are imported to the third-party solution, they’re used to fill in graphical templates set up there so that you can create (and print) a variety of package labels at any time. The interface can be connected to the following programs:

  • Loftware NiceLabel3 Cloud (Business edition or higher)
  • Loftware NiceLabel3 On-Premises (LMS Enterprise edition or higher)
  • Seagull Scientific BarTender2 (Automation edition or higher)

Interface basics#

Two key components help integrate the interface with the standard app:

Label Designer

  • NiceLabel3 Designer – Pro
  • BarTender2 Designer

Automation / Integration Builder

  • NiceLabel3 Automation Builder – Pro
  • NiceLabel3 Automation Builder
  • BarTender2 Integration Builder

The design component is used to customize label templates and layouts. The builder, on the other hand, helps those working with the functionality to create an automated printing process. This includes everything from setting a trigger (to import data) and opening a template to assigning variables and selecting a print option to feeding back values to the source system.

For a more detailed explanation of these processes, see the NiceLabel3 Cloud Setup, NiceLabel3 On-Premises Setup, and BarTender2 Setup.

Note

The standard NiceLabel3 Label Cloud API has a limitation of 5 calls per second. That frequency is suitable for the majority of labeling projects.

Sometimes, there are requirements for even faster printing. To satisfy demands for higher print frequency, a new high-throughput Label Cloud API is available. The new API expands the throughput to 30 calls per second and 50,000 calls per hour, whichever is achieved first.

The new API is not included in the Label Cloud subscription by default. You can include it as an add-on for an additional charge. In this case, please contact NiceLabel3. (Source: NiceLabel3 (27.11.2023).

Interface options#

The functionality comes with an array of tables, pages, and actions. Above all, however, it provides the configurations needed for multiple printing scenarios. You can choose between the following interface options:

  • KUMAVISION Label Interface – NiceLabel3 Cloud
  • KUMAVISION Label Interface – NiceLabel3 On-Premises Web Service
  • KUMAVISION Label Interface – BarTender2 Web Service

Another component—called KUMAVISION Label Interface File Extension—can be used to export files via on-premises solutions. As file access is restricted in SaaS environments, a separate app had to be developed for this purpose.

Note

Because the KUMAVISION Label Interface File Extension isn’t compatible with Unicode, the use of this extension can cause an increase in licensing costs for Microsoft products.

General setup#

You must set up the label interface before you can transmit information to an external program. You can also set up additional features during this process.

Activate the interface#

To turn on the interface:

  1. Choose the Search icon, enter KUMAVISION Module Setup, and then choose the related link.
  2. On the Settings FastTab, turn on the Label Interface toggle.

Note

You need a separate license before you can use the label interface.

Label position codes#

The data structures transmitted to third-party software programs contain a list of values, each coupled with an identifier. These identifiers are the same on all labels, regardless of what the labels will be used for. To set up a value:

  1. Choose the Search icon, enter Label Position Code List, and then choose the related link.
  2. Fill in the fields as described in the following table.
Field Description
Code Specify a unique code that can later be linked to a label structure.

You can enter a maximum of 20 characters in this field.
Description Specify a description for the code to clarify the label contents.

You can enter a maximum of 80 characters in this field.

Label Interface Setup#

To configure the label interface:

  1. Choose the Search icon, enter Label Interface Setup, and then choose the related link.
  2. Fill in the fields as described in the following table.

General#

Field Description
Printer Position Code Enter the code that will be used for the printer on this line.

The value in this field is automatically copied to label structure lines when you create a new structure.
No. of Copies Position Code Enter the code that will be used for specifying how many labels you want to create.

The value you enter in this field can be transmitted as a variable to a label design and print program for analysis if you set up the variable there. The field has the following impact on the creation of data structures:

a) For items without item tracking, the system will create a structure line and enter the No. of Copies value from the source document line there.

For lot-tracked items, the system will create a structure line filled in for each lot. The No. of Copies value will be copied from the relevant item tracking line.

b) For items tracked through serial numbers, the system will create a structure line with a No. of Copies value of 1 per number.

If you leave this field blank, the system will create as many lines as needed to match the quantity entered in the field. A quantity of 100 entered in this field, for example, will add 100 lines to the transfer file.
Log Content File Export Turn on this toggle if you want the label creation process logged by the system. You can see an overview of all archived print jobs on the Label Print Job Archive List page.
Output Interface Specify the interface that will be used to create labels.

Note
The KUMAVISION Label Interface File Extension is available as a separate app. Other interface solutions are available on request.

File Export#

Available after installing the KUMAVISION Label Interface File Extension app.

Field Description
Structure File Export Path Specify the directory that will be used to store the structure file you want to export to the label design and print program.
Content File Export Path Specify the directory that will be used to store the label file you want to export to the label design and print program.
Default Export Separator Specify the separator that will be required to export label files.
Text Encoding Specify the type of character encoding that will be used for label files (Windows, UTF8, UTF16, or MSDOS).
Pictograph Export Path Specify the path that label design and print programs should use to retrieve pictographs stored in KUMAVISION (Booster).
Pictograph File Type Specify the file type of pictographs (JPG or BMP).

Note
KUMAVISION functionality doesn’t separate pictograph files by type. You should therefore select a type here to avoid errors when working with third-party software.

Note

Depending on what option you selected in the Output Interface field, the page might show additional interface features. For more information, see NiceLabel Cloud Setup, NiceLabel3 On-Premises Setup, and BarTender2 Setup.

Label Printers#

To set up a device for printing labels:

  1. Choose the Search icon, enter Label Interface Setup, and then choose the related link.
  2. On the ribbon, choose Label Printer.
  3. Fill in the fields as described in the following table.
Field Description
Label Code Select the label code that will be used for the printer.
User ID Specify the ID of the user who will print labels.
Printer Name Specify the name of the device on which labels should be printed.

One printer can be stored per label code and ID. This is to ensure that external programs transmit the data stored in label structures to the correct printers. A printer can be assigned in the following ways:

  1. To a certain label code and user.
  2. To a certain label code and all users (that is, the User ID field is blank).
  3. To all codes (that is, the Label Code field is blank) but only one user.
  4. To all codes and users (Label Code and User ID fields are both empty).

Pictographs (Legacy)#

By using pictographs, you can assign symbols to labels in Microsoft Dynamics 365 Business Central1. No longer supported by NiceLabel3 Cloud and BarTender2 Web Service, the feature remains for legacy reasons.

Instead, pictographs should now be added through external sources. By using parameters (such as "PAR_*“ codes specified on the Label Position Code List page) and a certain function, however, you can still choose whether to show a symbol on a certain label.

Label structures#

Label structures are representations of the core information used for labeling. Within a structure, you can assign position codes to Microsoft Dynamics 365 Business Central1 records and fields. The lines of the structure specify the data that you want to show on a label and where this information comes from. The structures can be used for multiple items (none are related to a specific item).

To set up a structure:

  1. Choose the Search icon, enter Label Structure List, and then choose the related link.
  2. On the ribbon, choose New.
  3. Fill in the fields as described in the following table.
Field Description
Code Specify a code for the structure. The code must be unique.

You can enter a maximum of 20 characters in this field.
Name Specify a brief description for the structure.

You can enter a maximum of 50 characters in this field.
Label Type Specify the type of label. Options are:
• (blank)
• Location
• Product
• Shipment•
Whse. Receipt

Note
This field is used for informational purposes only.
Status Shows the status of the structure. A structure can have one of the following statuses:
• New
• Certified
• Under Development
• Expired

Note
You can only create labels from certified structures.
Version Nos. Specify the number series that will be used to assign version numbers to the label.

Filling in this field is optional.
Active Version Shows the currently active version of the structure.

This is the version that is certified and valid on the date on which you open the structure.
From Date Specify from when the structure should be valid.
To Date Specify until when the structure should be valid.

If this field is left blank, this version of the structure will be used until it is replaced by another active version.
Label structure lines#

The structure lines represent the individual positions that should be printed on the label.

Field Description
Position Code Specify a unique position code that stands for a value on the label. You can select a code from the list or create a new one.

For example, you can select position code ITEM_NO in this field to assign the item number from the item master to the label.
Position Description Shows the description of the code.

The description is copied from the Position Code Label List page but can be changed manually in this field.
Source Type Specify where the data entered for the code comes from.

For example, you can choose Text here if you want the system to use the content of the Source Value field.

For more information on how to select a source type and subtype, see Source Type—Subtype Combinations.
Source Subtype Enter another type that will be used in combination with the Source Type field.

For example, for the Item source type, you can specify in this field if you want to use the description or the content (=value) stored in the item master.

For more information on how to select a source type and subtype, see Source Type—Subtype Combinations.
Source Field No. You can only fill in this field for source types linked to a table. The number you enter here identifies the field from which a value or a description is copied from.

For more information on how to select a source type and subtype, see Source Type—Subtype Combinations.
Source Code This field can only be used in the following ways:

Option 1
If the source type is Pictograph and the subtype is Database, you can choose the code of a pictograph from the pictograph master.

This option is available for legacy reasons. It is only used for the KUMAVISION Label Interface File Extension (which needs to be installed separately).

Option 2
If the source type is Item Tracking and the subtype Expiration or Production Date, you can format this date in the following ways:

<YYYY>: In this format, the year is represented by four digits.
<YY>: The year is represented by the last two digits.

<MM>: In this format, the month is shown as a number.
<MONTH>: The month is written out.

<DD>: In this format, the day is written out.

Example 1
<MONTH> <YYYY> will list the date as December 2022.

Example 2
<YYYY>-<MM>-<DD> will list the date as 2022-07-09.

Option 3
If the source type is Item Attribute, you must assign the attribute that you want to specify for the label (applies to both Caption and Value subtypes).

To select an attribute, use the lookup in the field.
Source Value This field is filled in automatically unless you chose source type Text or source type Pictograph and subtype Path.

If you chose Text, enter the text you want printed for the position code.

For source type Pictograph and subtype Path—and if symbols are not stored in the system but a directory—specify the path at which the pictograph can be found.

This option is only available for legacy reasons and is only used in combination with the KUMAVISION Label Interface File Extension, which needs to be installed separately.

For more information on how to select a source type and subtype, see Source Type—Subtype Combinations.
Language Code Here you can specify different item codes to add translations to the label structure.

The field is only used for types Item Translation, EUDAMED UDI-DI, and EUDAMED Legacy in combination with subtype Value, or for type Item Attribute and subtype Caption or Value.
Source type-subtype combinations#

The following table shows the subtypes that you can add to a source type and what will happen if you do (=source value).

Source type Source subtype Source value
Text (blank) None; enter a text that you want printed on a label for the selected position code.
Pictograph Path None; specify the file path to a pictograph that will be used for the selected position code.

This option exists for legacy reasons. For more information, see KUMAVISION Label Interface File Extension.
Pictograph Database The Source Value field is filled in automatically with the name of a pictograph that will be used for the selected position code.

This option exists for legacy reasons. For more information, see KUMAVISION Label Interface File Extension.
Item Caption The Source Value field is filled in automatically with the caption of an Item table field selected via the Source Field No.
Item Value The Source Value field is filled in automatically with the content of an Item table field selected via the Source Field No.
Item Attribute Caption The Source Value field is filled in automatically with the caption of an Item Attribute table field selected via the Source Field No.

If you select the Name field and have specified a language code, the Source Value field is filled in with the translation entered for the attribute.

If no translation is available, the system shows the default name instead.
Item Attribute Value The Source Value field is filled in automatically with the content of an Item Attribute table field selected via the Source Field No.

If you select the Value field and have specified a language code, the Source Value field is filled in with the translation entered for the attribute.

If no translation is available, the system shows the default value instead.
Item Variant Caption The Source Value field is filled in automatically with the caption of an Item Variant table field selected via the Source Field No.
Item Variant Value The Source Value field is filled in automatically with the content of an Item Variant table field selected via the Source Field No.
Item Translation Caption The Source Value field is filled in automatically with the caption of an Item Translation table field selected via the Source Field No.
Item Translation Value The Source Value field is filled in automatically with the content of an Item Translation table field selected via the Source Field No.

You can use the Language Code field to specify for which language the item translations should be filtered.
Item UOM Caption The Source Value field is filled in automatically with the caption of an Item Unit of Measure table field selected via the Source Field No.
Item UOM Value The Source Value field is filled in automatically with the content of an Item Unit of Measure table field selected via the Source Field No.
Item Tracking Serial No. The Source Value field is filled in automatically with the serial number that was entered for the item assigned to the selected position code.
Item Tracking Lot No. The Source Value field is filled in automatically with the lot number that was entered for the item assigned to the selected position code.
Item Tracking External Lot No. The Source Value field is filled in automatically with the external lot number that was entered for the item assigned to the selected position code.
Item Tracking Expiration Date The Source Value field is filled in automatically with the expiration date that was entered for the item assigned to the selected position code.

You can use the Source Code field to reformat the date.
Item Tracking Production Date The Source Value field is filled in automatically with the production date that was entered for the item assigned to the selected position code.

You can use the Source Code field to reformat the date.
Customer Caption The Source Value field is filled in automatically with the caption of a Customer table field selected via the Source Field No.
Customer Value The Source Value field is filled in automatically with the content of a Customer table field selected via the Source Field No.
Vendor Caption The Source Value field is filled in automatically with the caption of a Vendor table field selected via the Source Field No.
Vendor Value The Source Value field is filled in automatically with the content of a Vendor table field selected via the Source Field No.
Customer Ref. Caption The Source Value field is filled in automatically with the caption of an Item Reference table field selected via the Source Field No.

This table is prefiltered for customers.
Customer Ref. Value The Source Value field is filled in automatically with the content of an Item Reference table field selected via the Source Field No.

This table is prefiltered for customers.
Vendor Ref. Caption The Source Value field is filled in automatically with the caption of an Item Reference table field selected via the Source Field No.

This table is prefiltered for vendors.
Vendor Ref. Value The Source Value field is filled in automatically with the content of an Item Reference table field selected via the Source Field No.

This table is prefiltered for vendors.
Company Info Caption The Source Value field is filled in automatically with the caption of a Company Information table field selected via the Source Field No.
Company Info Value The Source Value field is filled in automatically with the content of a Company Information table field selected via the Source Field No.
Barcode Ref. Barcode The Source Value field is filled in automatically with an item reference number based on an item number, a variant code, an item UOM, and the reference type Barcode.
Barcode Ref. Text The Source Value field is filled in automatically with an item reference number based on an item number, a variant code, an item UOM and the reference type Barcode.
Printer (empty) The Source Value field is filled in automatically with the printer that will be used for the chosen combination of label structure and user ID.
No. of Copies (empty) The Source Value field is filled in automatically with the number of required labels.
Document No. (empty) The Source Value field is filled in automatically with the number of the source document if this document triggered the printing process.
Transaction Code Value The Source Value field is filled in automatically with the transaction code from a document, for example, a warehouse receipt, if this document triggered the printing process.
Location Code Value The Source Value field is filled in automatically with the location code from a document, for example, a warehouse receipt, if this document triggered the printing process.
Location Code Value The Source Value field is filled in automatically with the bin code from a document, for example, a warehouse receipt, if this document triggered the printing process.
EUDAMED UDI-DI Caption The Source Value field is filled in automatically with the caption of a UDI-DI field selected via the Source Field No.
EUDAMED UDI-DI Value The Source Value field is filled in automatically with the content of a UDI-DI field selected via the Source Field No.
EUDAMED Legacy Caption The Source Value field is filled in automatically with the caption of a UDI-DI field selected via the Source Field No.
EUDAMED Legacy Value The Source Value field is filled in automatically with the content of a UDI-DI field selected via the Source Field No.
Copy structure (action)#

Copies an existing label structure. To use this function:

  1. On the Label Structure List page, choose New.
  2. On the ribbon, choose Copy Structure.
  3. In the Copy from Label Code field, specify the code of the structure that you want to copy lines from.
  4. Turn on the Copy Incl. Values toggle if also want to copy manual source values (source type Text or source type Pictograph in combination with subtype Path). If you leave the toggle turned off, their source values will be blank, and you need to fill them in again.
  5. Choose OK to copy the lines from the selected structure to the new one.

Note

You can also use this function to revise an existing structure by copying lines from another prior to making changes. If you run the function from a structure for which lines exist, the system will delete them before copying the other lines.

Label structure versions#

You can create versions of a label structure if you want to use some version of the structure to start being valid on a specified date. To set up this feature:

  1. Choose the Search icon, enter Label Structure List, and then choose the related link.
  2. Open a label structure.
  3. In the Version Nos. field, enter a number series that will be used for the versions of this structure.

You can then see the current structure version in the Active Version field. Data copied from previous, expired versions remains available as well.

The system identifies the active structure version by looking for one where the work date is within the period specified in the Starting Date and Ending Date fields. If this results in more than one search hit, the version with the highest number will be used as the active version.

Note

If you want to work with version numbers, we recommend that you add leading zeros to these numbers, as the Version No. is a code field (which is sorted in alphanumeric order).

Create a new version#

To create a new version of a label structure:

  1. Choose the Search icon, enter Label Structure List, and then choose the related link.
  2. Open a label structure.
  3. On the ribbon, choose Versions and then choose New.
  4. With the Version Nos. field filled in, you can exit the No. field to have a number assigned automatically. If the Version Nos. field hasn’t been filled in on the structure card, you need to enter a number manually.
  5. The work date is then automatically suggested in the Starting Date field. However, you can specify another date if needed.

You can now enter data on the lines manually or choose Copy Structure on the ribbon to copy lines from an existing structure or version.

Version Matrix (action)#

Compares structure versions on a matrix. You can specify filters here before you choose Show Matrix on the ribbon.

Change Log (action)#

Shows changes to a label structure if structures and versions are tracked. This action extends the standard change log functionality. To include label structures on logs, you must add the following tables in Change Log Setup:

  • Table 5488108 - KVSKBALabelStructureHeader
  • Table 5488109 - KVSKBALabelStructureLine
  • Table 5488116 - KVSKBALabelStructureVersion

For more information about tracking changes, see Auditing changes.

Item-Label Relations#

Label structures essentially tell another program where to print lines (position codes) on a label and how to calculate values for them.

All structures are universally valid so that they can be used for multiple items. To assign a structure to an item, choose Item-Label Relations on the ribbon of the relevant structure, item, or item variant.

The Item-Label Relations page stores the links between items and structures, as well as their units of measure, language codes, and customers or vendors. These values are then used to find a label structure or create a new label.

For example, by specifying a unit of measure and a customer number, you can create an OEM label for a certain customer as described in the following table.

Field Description
Item No. Specifies the number of the item the structure will be linked to.
Variant Code Specifies the variant of the item the structure will be linked to.
Label Code Specifies the code of the structure used.
Item Description Specifies the item description that will be linked to the structure.
Label Name Specifies the name of the structure that will be linked to the item.
Item UOM Specifies the unit of measure in which label data (contents) will be calculated.
Language Code This field is filled in with the language that has been specified for calculating label contents.
Customer No. Specifies the customer for which label contents will be calculated.
Vendor No. Specifies the vendor number for which label contents will be calculated.
Print at Receipt With the toggle turned on, the label is printed when the item is received at a location.
Print on Prod. Order If the article linked to the structure is a production article, this checkbox must be activated so that a corresponding label can be printed from the production order.
Print at Shipment With the toggle turned on, the label is printed when the item is shipped.
Overpack Qty. This field is used only when the Print at Receipt toggle is turned on and the No. of Copies Position Code field in Label Interface Setup is empty.
No. of Sample Labels This field can be filled in if labels are printed, for example, as reserve samples.

If the field is filled in, the No. of Copies will be increased by the number specified here.
Overpack quantities#

The Overpack Quantity field is used when the Print at Receipt toggle is turned on and the No. of Copies Position Code field in Label Interface Setup is blank. When both conditions are met, the number of copies is calculated as follows:

Non-tracked and tracked items

Order Quantity 100
Unit of Measure Pieces
Overpack Quantity 1
= 100 labels (100 divided by 1)
Order Quantity 100
Unit of Measure Pieces
Overpack Quantity 2
= 50 labels (100 divided by 2)

Label contents and preview#

For the most part, labels are created automatically in Microsoft Dynamics 365 Business Central1 before they’re copied to a third-party solution.

After the labels have been imported, the external program creates the relevant information and sends it to the selected printer. Manual intervention shouldn’t be necessary in this context.

However, to track the generation of label contents in Microsoft Dynamics 365 Business Central1 and preview labels for revisions, you can choose Show Label Contents on the ribbon of a label structure or the Item-Label Relations page.

When you run this function from the Item-Label Relations page, data is filtered for the selected relations. If you run it from a structure, you can only filter for a label code.

On the Label Contents page, you can fill in values on the header, for example, a serial number or an expiration date. You can also enter other information to see how specific label positions are calculated.

The fields in the following table must be filled in as described:

Field Description
Item No. Specify the number of the item for which you want to create a label.

This number is also used to determine the contents of source types Item, Item Variant, Item UOM, Item Translation, Customer Ref., Vendor Ref., and Barcode and is set as a filter on values when label data is calculated.
Variant Code Specify the code of the item variant for which you want to create a label.

The code is also used to determine the contents of source types Item, Item Variant, Item UOM, Item Translation, Customer Ref., Vendor Ref., and Barcode and is set as a filter on values when label data is calculated.
Label Code Specify the code based on which you want to calculate label contents.
Label Name Shows the name of the label. The name is entered automatically.

You can also enter something in other fields if necessary:

Field Description
Item UOM Here you can specify the item unit of measure for which you want to create a label.

The unit is also used to determine the contents of source types Item, Item Variant, Item UOM, Item Translation, Customer Ref., Vendor Ref., and Barcode and is set as a filter on values when label data is calculated.
Language Code Here you can specify the language code that you want to use to create content for source type Item Translation.
Serial No. Here you can specify the number that you want to use to create content for source type Serial No.
Lot No. Here you can specify the number that you want to use to create content for source type Item Tracking and subtype Lot No.
External Lot No. Here you can specify the number that you want to use to create content for source type Item Tracking and subtype External Lot No.
Expiration Date Here you can specify the number that you want to use to create content for source type Item Tracking and subtype Expiration Date.
Production Date Here you can specify the number that you want to use to create content for source type Item Tracking and subtype Production Date.
Customer No. Here you can specify the number that you want to use to create content for source types Customer and Customer Ref.
Vendor No. Here you can specify the number that you want to use to create content for source types Vendor and Vendor Ref.
Label Printer Name Shows the device on which labels will be printed. This field is filled in automatically depending on setup.
Document No. Here you can specify the number of a document.
Transaction Code Here you can specify the code of a transaction.
Location Code Here you can specify the code of a location.
Bin Code Here you can specify the code of a bin.
NiceLabel Cloud Trigger API ID Shows a unique trigger ID that will be used for NiceLabel3 Cloud.

Note
An ID is only filled in if you selected KUMAVISION Label Interface – NiceLabel3 Cloud in Label Interface Setup.
Calculate Contents (Action)#

Starts in Microsoft Dynamics 365 Business Central1 the process of calculating line values based on the specified label structure.

Preview Label (Action)#

Provides an online preview of labels created in NiceLabel3 Cloud or BarTender2 Web Service.

For this purpose, the label design and print program will simulate the standard printing process, store the results as a PDF file, and send the PDF to Microsoft Dynamics 365 Business Central1.

Note

To distinguish this preview from the printing process itself, an additional parameter called PreviewFormat is passed on to the label design program. This parameter has the value True for each preview, whereas the value is False for actual printouts.

After you run the Preview Label action, the label is shown on the Preview Label FastTab.

Create Structure File (Action)#

Creates a file that contains all codes and sample values assigned to positions on a label, as a basis for designing new data structures.

After the structure is created, it is stored in the standard Download folder. The file name shows the label code, the ID of the user who created the file, and the date and time of creation.

If you’re using KUMAVISION Label Interface – NiceLabel3 Cloud or BarTender2 Web Service, the file extension will be JSON. If you’re using the KUMAVISION Label Interface – NiceLabel3 On-Premises Web Service, the structure will be in the XML format. File contents are arranged in the same way as in the file sent to the label design and print program.

Create a Label (Manually)#

After the label information has been determined for a specific item, label data can be created and transmitted by choosing Create Label File. This will create a file manually.

Create a label (automatically)#

Warehouse receipt#

If the Print at Receipt checkbox is selected on the Item-Label Relations page, labels will automatically be created for items when you post their receipt at a warehouse.

As an example, you created and ordered in advance multiple items, which are now being received.

You then post their receipt so that a label is created and copied automatically to the relevant label design and print program. The PDF file generated for the label will be three pages long, with each page showing one of the three items listed in the Qty. Received field on the receipt.

NiceLabel3 On-Premises#

Required version or edition#

The NiceLabel3 Web Service requires the Loftware NiceLabel3 On-Premises LMS Enterprise edition or higher.

NiceLabel3 On-Premises Setup#

Label Interface Setup#

On this page, you need to select KUMAVISION Label Interface – NiceLabel3 On-Premises Web Service in the Output Interface field.

Everything else can be configured in the same way as for the default interface.

Label structure#

To transmit data to NiceLabel3 On-Premises through a web service call, you need to fill in the NiceLabel3 On-Premises Web Service URL field in the label structure.

Field Description
NiceLabel On-Premises Web Service URL Specify the URL of the NiceLabel3 Automation Builder that will be used for transmitting data to NiceLabel3.

Note

You can only see this field if NiceLabel3 On-Premises Web Service has been selected on the Label Interface Setup page.

Using NiceLabel3 On-Premise#

You can take the following steps to integrate Loftware NiceLabel3 On-Premises with your Microsoft Dynamics 365 Business Central1 environment.

Note

The setup examples provided with this article are not meant to replace NiceLabel3 documentation nor any training in using the program.

NiceLabel3 Automation Builder#

With the help of filters and triggers provided by NiceLabel3 Automation Builder, you can set up print scenarios based on data provided by Microsoft Dynamics 365 Business Central1.

XML Data Filter#

Because data is transferred to NiceLabel3 On-Premises in the XML format, you need an XML filter. Add this filter, and a name, to a new data structure. On the ribbon, choose Import Data Structure to import a structure file from Microsoft Dynamics 365 Business Central1. For more information on how to generate the file, see Create Structure File.

To use XML nodes as variables, you can then set the Usage property of every element in the structure to Variable Value.

Create a trigger#

Afterward, create a unique trigger that contains the processes that you want to run. Go to the Configuration Items tab, choose Add, and then choose Web Service.

Give the trigger a unique name and assign a port for communication with the web service. The port will be part of the web service URL and will be linked to the label structure in Microsoft Dynamics 365 Business Central1.

Typically, the label design program is set up in a way so that variables will be read off the labels. Since label integration in this scenario occurs throughout the system and the labels used are transmitted as parameters of a structure, you need to set up integration variables manually by choosing Add > Variable on the Variables tab.

Note

We recommend that, as names, you use the descriptions specified for the variables on the structure lines created in Microsoft Dynamics 365 Business Central1. This way, label information will be mapped automatically to the variables.

To respond to preview or printout requests sent from Microsoft Dynamics 365 Business Central1, you must also add the ResponseData variable. This variable will later be used to return values to the app.

Use Data Filter#

Now, assign the NiceLabel3 parameters to the specified variables by adding the Use Data Filter function to the Actions tab.

Afterward, enter the XML structure as a name on the Filter tab. If the names of the XML variables match the position codes set up in Microsoft Dynamics 365 Business Central1, choose Auto Map on the Data Mapping tab.

The information stored in the data structure is then assigned to each variable by the system. If names are different, you must create mappings manually.

Open Label#

Open the relevant label. As the label name is stored on a data structure line in Microsoft Dynamics 365 Business Central1, you can again use a variable to get the name. Add the Open Label action, select the Data Source checkbox on the Settings tab, and fill in the Label Name field.

Preview: Print to PDF#

To save print information as a PDF file so that you can preview the label, add the Redirect Printing to PDF action, enter a file name, and select the Overwrite File checkbox.

Because this action should only be performed for previewing a label, go to the Show Execution and Error Handling Options tab and add the condition that for this function to work, the PreviewFormat variable must be set to True.

Afterward, add the Print Label action and specify that the number of labels to print (=No. of Copies) will be sourced from a variable.

Preview: Read data from file#

For previews, the contents of the PDF file must then be read and copied to the ResponseData variable. Add the Read Data from File action. In the properties, set the File Name as explained under Preview: Print to PDF and enter 20 as the Number of Retries.

Because, again, this action should only be performed for label previews, add on the Show Execution and Error Handling Options tab the condition that for this function to work, the PreviewFormat variable must be set to True.

Preview: Set ResponseType PDF#

Because the return value for a preview consists of a PDF document, you also need to convert the ResponseType. For this purpose, add another action that sets the variable to application/pdf in the case of previews.

NiceLabel3 Cloud#

Required version or edition#

The NiceLabel3 Cloud interface requires NiceLabel3 Cloud Business edition or higher.

NiceLabel3 Cloud setup#

NiceLabel3 Cloud APIs Using NiceLabel3 Cloud APIs#

Before you can use NiceLabel3 APIs, you need to log on to the API Developer Portal, create a subscription, and link the subscription to your Control Center. For more information, see Cloud Integrations – NiceLabel3 Help Center page.

Label Interface Setup#

On this page, you must select KUMAVISION Label Interface – NiceLabel3 Cloud Web Service in the Output Interface field and enter an API subscription key.

Field Description
NiceLabel Cloud API Subscription Key Specify the primary key shown on the Developer Portal.

This key is used as a component of API authentication, that is, it is included in the header information for HTTP requests as “Ocp-Apim-Subscription-Key.”

Everything else can be set up in the same way as for the default interface.

Label printers#

With NiceLabel3 Cloud, you can store what is known as cloud printers. As they aren’t connected to Microsoft Dynamics 365 Business Central1, they cannot be selected in the app.

To add them, you need to retrieve printer information through the API from the NiceLabel3 Cloud by choosing NiceLabel3 Printer on the ribbon.

You can then choose Update Printer List to connect to the API and get the list of cloud printers stored online.

Label structure#

With NiceLabel3 Cloud, you can set up automated workflows to specify labeling actions and processes. You can also create a single workflow for use in every print scenario by assigning a variety of variables to the parameters available in the NiceLabel3 Automation Builder.

Automated workflows can be identified by their trigger IDs. To send label data structures from Microsoft Dynamics 365 Business Central1 to the right triggers, you need to store a NiceLabel3 Cloud API identifier for each of them.

Field Description
NiceLabel Cloud Trigger API ID Enter the unique Trigger Name used by an automated NiceLabel3 workflow for the label structure.

The content of this field must match the name of the trigger specified in the NiceLabel3 Control Center.

Use NiceLabel3 Cloud#

You can take the following steps to integrate Loftware NiceLabel3 Cloud with your Microsoft Dynamics 365 Business Central1 environment.

Note

The setup examples provided with this article are not meant to replace NiceLabel3 documentation nor any training in using the program.

NiceLabel3 Automation Builder#

With the help of filters and triggers provided by NiceLabel3 Automation Builder, you can set up print scenarios based on data provided by Microsoft Dynamics 365 Business Central1.

Json data filter#

Because data is transferred to NiceLabel3 Cloud in the JSON format, you need a JSON filter. Add this filter, and a name, to a new data structure. On the ribbon, choose Import Data Structure to import a structure file from Microsoft Dynamics 365 Business Central1. For more information on how to generate the file, see Create Structure File.

To use JSON parameters as variables, you can then set the Usage property of every element in the structure to Variable Value.

Create a trigger#

Afterward, create a unique trigger that contains the processes that you want to run. On the Configuration Items tab, choose Add, and then choose Cloud.

Give the trigger a unique name and a unique ID. This ID will be used to trigger cloud services and will be linked to the label structure in Microsoft Dynamics 365 Business Central1.

Typically, the label design program is set up in a way so that variables will be read off the labels. Since label integration in this scenario occurs throughout the system and the labels used are transmitted as parameters of a structure, you need to set up integration variables manually by choosing Add > Variable on the Variables tab.

Note

We recommend that, as names, you use the descriptions specified for the variables on the structure lines created in Microsoft Dynamics 365 Business Central1. This way, label information will be mapped automatically to the variables.

To respond to preview or printout requests sent from Microsoft Dynamics 365 Business Central1, you must also add the ResponseData and ResponseType variables. These will later be used to return values to the app.

Use Data Filter#

Now, assign the NiceLabel3 parameters to the specified variables by adding the Use Data Filter function to the Actions tab.

Afterward, enter the JSON structure as a name on the Filter tab. If the names of the JSON variables match the position codes set up in Microsoft Dynamics 365 Business Central1, choose Auto Map on the Data Mapping tab.

The information stored in the data structure is then assigned to each variable by the system. If names are different, you must create mappings manually.

Open Label#

Open the relevant label. As the label name is stored on a data structure line in Microsoft Dynamics 365 Business Central1, you can again use a variable to get the name. Add the Open Label action, select the Data Source checkbox on the Settings tab, and fill in the Label Name field.

Initialize ResponseType variable#

Set the ResponseType to application/json. Add the Set Variable action, enter ResponseType in the Name field, and select the application/json value.

Initialize ResponseData variable#

The ResponseData variable, on the other hand, must be “{}.” For this purpose, add the Set Variable action, enter ResponseData in the Name field, and enter {}.

Preview: Print to PDF#

To save print information as a PDF file so that you can preview the label, add the Redirect Printing to PDF action, enter a file name, and select the Overwrite File checkbox.

Because this action should only be performed for previewing a label, go to the Show Execution and Error Handling Options tab and add the condition that for this function to work, the PreviewFormat variable must be set to True.

Afterward, add the Print Label action and specify that the number of labels to print (=No. of Copies) will be sourced from a variable.

Preview: Read data from file#

For previews, the contents of the PDF file must then be read and copied to the ResponseData variable. Add the Read Data from File action. In the properties, set the File Name as explained under Preview: Print to PDF and enter 20 as the Number of Retries.

Because, again, this action should only be performed for label previews, add on the Show Execution and Error Handling Options tab the condition that for this function to work, the PreviewFormat variable must be set to True.

Preview: Set ResponseType PDF#

Because the return value for a preview consists of a PDF document, you also need to convert the ResponseType. For this purpose, add another action that sets the variable to application/pdf in the case of previews.

Set ResponseType and ResponseData#

As a last step, open the trigger settings. On the Communications tab, enter ResponseType in the Response Type and [ResponseData] in the Response Data field for use by the cloud trigger.

Seagull Scientific BarTender2#

Required version or edition#

BarTender2 Web Service requires the Seagull Scientific BarTender2 Automation edition or higher.

BarTender2 setup{ #additional-bartender-setup }#

Label Interface Setup#

On this page, you must select KUMAVISION Label Interface – BarTender2 Web Service in the Output Interface field.

Everything else can be set up in the same way as for the default interface.

Label structure#

To transmit data to BarTender2 through web service requests, you also need to fill in the following fields on label structure headers:

Field Description
BarTender Web Service URL Specify the URL of the BarTender2 Integration Builder that will be used for transmitting data to BarTender2.
BarTender Authentication Turn on the toggle if basic authentication should be required to gain access to BarTender2.
BarTender Username Specify the username needed to log on to BarTender2.

This field is only filled in if Basic has been selected in the BarTender Authentication field.
BarTender Password Specify the password needed to log on to BarTender2.

This field is only filled in if Basic has been selected in the BarTender Authentication field.

Note

You can only see these fields if BarTender2 Web Service has been selected on the Label Interface Setup page.

Use BarTender2#

You can take the following steps to integrate Seagull Scientific BarTender2 with your Microsoft Dynamics 365 Business Central1 environment.

Note

The setup examples provided with this article are not meant to replace BarTender2 documentation nor any training in using the program.

BarTender2 Integration Builder#

With the Integration Builder, you can create and manage print scenarios.

When you set up a new scenario, you can also select the trigger that you want to use for interfacing with Microsoft Dynamics 365 Business Central1. Choose Web Service.

Service#

The name of the scenario will match the name of the web service. However, if necessary, you can change the name on the Integration tab.

Input data#

On the Input Data tab, set the input format to JSON Variables and choose New Sample to select the structure file that you created in Microsoft Dynamics 365 Business Central1. For more information on how to generate the file, see Create Structure File.

This will transfer the values of the variables set up in Microsoft Dynamics 365 Business Central1 to BarTender2 as sample data.

Response#

On the Response tab, select the format and the content that you want returned to Microsoft Dynamics 365 Business Central1.

As an encoded PDF stream is required to preview labels, the response by the app should be copied to a new variable to ensure that this value is filled in by an independent action.

Variables#

On the Variables tab, you can change default variables used in print scenarios or add new variables. As neither action is required in this case, you don’t need to change anything here for now.

Actions#

On the Actions tab, you can store various steps that make up something of a workflow. The program will follow each step as data is received. The actions have been classified as follows:

  • Print
  • Transform
  • Input
  • Output
  • Execute
  • File
  • Database

Each action also comes with a subset of steps that can be linked together as needed. For more information, see the BarTender2documentation.

Sample task#

Have the label design and print program save label data received for preview as a PDF file before transmitting the information to Microsoft Dynamics 365 Business Central1 in a response stream.

If the data isn’t meant for preview, however, have the program print the label information by using the printer specified in the associated data structure.

Solution#
  1. Print or preview
    First, add a Select Case action to perform a check if the action that triggered the printing process is used when previewing labels (that is, if the PreviewFormat variable linked to the action has been set to True). Specify that the next steps in the process will be different for previews and printouts.

  2. Preview
    Assuming the ETI_DOCUMENT variable will be used to transfer data from Microsoft Dynamics 365 Business Central1 label structures, the document that you want to open must now be linked to the variable.

    The use of this method will reduce the number of printing scenarios needed, as the data structures already designate the relevant labels.

    Regarding print options, specify that print data should be saved to a PDF and enter the path to the directory where you want to store the file. Afterward, choose Named Data Sources to assign the variables that you want to add to data sources in the Label Designer.

    As a next step, you need to store the PDF file in Base64 format in a variable (to allow a response by the label interface). Add the PowerShell Command action, select Embedded Commands for the Source property, and enter the following:

    [convert]::ToBase64String((Get-Content -path < file name from extended print options > -Encoding byte))

    Afterward, enter the variable that you set up under Response in the Send Command Output and Errors to Variable field.

  3. No preview = print
    For a label to be printed instead, add the Print Document action. The look of the label remains because the layout is specified by the label structure stored in Microsoft Dynamics 365 Business Central1.

    As for print options, you can use variables to specify the printer you want to use and the number of labels you want printed based on the label structure created in Microsoft Dynamics 365 Business Central1. Variables are specified in BarTender2 via %< name of variable >% (for example, %TYPE_NO% or %ETI_PRINTER%).

    As a last step, choose Named Data Sources to assign the variables you want transmitted from the relevant print scenario to the named data sources used in the Label Designer.