Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Unanswered

Deprecated function for printing shipping labels (ZPL)

(0) ShareShare
ReportReport
Posted on by 27
Good morning,
 
For a while now we've been using the WhsDocumentRouting::printLabelToPrinter function to print shipping labels (that we get from an external source) in ZPL format to our label printers. Now after a Dynamics update this year, I saw the warning 'printLabelToPrinter' is obsolete: ''WhsLabelPrintCommand was introduced to replace the plain string ZPL label. Callers should begin using printLabelPrintCommandToPrinter instead'' in my build.
 
So I tried to change my code to use this new function. However, it appears this printLabelCommandToPrinter function is marked as internal, so I cannot call this from my own model. Am I missing something here? How am I supposed to replace this obsolete function with an internal function?

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,969 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,842 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans