web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Suggested answer

Printing Custom Labels for each selected line item

(1) ShareShare
ReportReport
Posted on by 5
Team,
 
I am setting up custom labels for sales order line items for inventory purposes. We are using a Zebra label printer so I am setting up the ZPL script that will create the label each time the print button is selected. I found a useful line in the microsoft article about printing labels for all line items. But I am having trouble limiting that to just the line items that are selected, not all line items every time. The line in the ZPL script that prints one label per line item is as follows.
 
{{Row Table=/table name/ StartY=XXX IncY=XXX RowsPerLabel=1
 
How can I refine this to only print labels for the line items I have selected? I've tried looking for what kind of language or script this is coming from but I can't find anything that points me to how this is modifying the output.
I have the same question (0)
  • Suggested answer
    Laurens vd Tang Profile Picture
    3,382 Super User 2025 Season 2 on at
    Printing Custom Labels for each selected line item
    Good day,
     
    The custom label being printed only for the selected records, see below screenshot for an example.
     
     
    Best regards,
    Laurens van der Tang
  • Ben Ashe Profile Picture
    48 on at
    Printing Custom Labels for each selected line item
    Hi, I have a question on the {{Row Table=/table name/ StartY=XXX IncY=XXX RowsPerLabel=1
    code line, as I am trying to achieve a label print per line on a return order, and am having trouble. I have a 3 line order, and although I'm getting 3 labels sent to the virtual printer, only label 3 is printing (for the 3rd order line). Labels 1 and 2 error. 
    I am using this line: {{Row Table=SalesLine_1 RowsPerLabel=1
     
    If I use line: {{Row Table=SalesTable_1 RowsPerLabelFirst=1 RowsPerLabel=1 I get the first label for order line 1, and no other labels for line 2 and 3.
     
    I have tried to play around with {{Header and {{HeaderFirst, but not had any luck.
     
     
    Did you use HeaderFirst, Header and FooterFirst, Footer? 
     
    Any help greatly appreciated! 
     
     
     
  • Hana Xue Profile Picture
    Microsoft Employee on at
    Printing Custom Labels for each selected line item
    Hi,
    Challenges with label printing with the D365FO are noted in the documentation, including the fact that the labels do not contain any information about the sales order and the inability to enforce the LP that must be selected. You may be able to use Advanced Warehouse Management to create labels.
     Advanced Warehouse Management provides some fields that contain line numbers and order numbers, which can be included as variables in the ZPL code of the document routing layout to differentiate by line number.
    You can check out the details on the tabs for Advanced Warehouse Management at the link below.
    Dynamics Advanced Warehouse Management - Labels (innovation-product-documentation.azurewebsites.net)
    In addition, you can also briefly browse this article:
    https://erpsoftwareblog.com/cloud/2021/11/zpl-label-design-and-d365-fo-integration/
    Best Regards,
    Hana

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 183 Super User 2025 Season 2

#2
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 155

#3
Yng Lih Profile Picture

Yng Lih 142

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans