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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Sending data through P...
Power Automate
Unanswered

Sending data through PrintNode API to Zebra GK420t

(0) ShareShare
ReportReport
Posted on by

Good afternoon all,

 

Working on a solution to send variable data from PowerApps into a formatted 4x1 label size and print it out, while showing a preview in the PowerApp on selection.

 

My thought process and Flow looks like this currently;

Data in selected from pull-down in PowerApps >

Preview label image is shown by using a labelary api (http://api.labelary.com/v1/printers/8dpmm/labels/4x1/0/%10CT~~CD,~CC%5E~CT~%5EXA~TA000~JSN%5ELT0%5EMNW%5EMTT%5EPON%5EPMN%5ELH0,0%5EJMA%5EPR5,5~SD15%5EJUS%5ELRN%5ECI0%5EXZ%5EXA%5EMMT%5EPW812%5ELL0203%5ELS0%5EFT797,160%5EA0I,28,28%5EFH/%5EFD$partnumber$%5EFS%5EFT165,15%5EA0I,28,28%5EFH/%5EFD$customer$%5EFS%5EFT437,15%5EA0I,28,28%5EFH/%5EFD$tag$%5EFS%5EFT92,163%5EA0I,28,28%5EFH/%5EFD$po$%5EFS%5EFT797,16%5EA0I,28,28%5EFH/%5EFD$jobnumber$%5EFS%5EPQ1,0,1,Y%5EXZ) >

Button press to send API to Flow >

Flow sends the generated web image to PrintNode API, where I have my Zebra GK420t setup and working.

 

Expanding/personalizing off of this wonderful video: https://www.youtube.com/watch?v=m4Fu9af2h1c

 

My issue is that if I direct the PrintNode API to print with any of the other printers available, ie. Lexmark CX517, Brother DCP-L2550DW it prints successfully, but when printing to the Zebra label printer nothing happens. The logs from PrintNode show the print succeeding but there is no result. I can print the test documents from PrintNode successfully, but not from the Flow. If I download the label and print it manually from local file storage to the Zebra printer it works. 

 

Here is the part of the Flow that sends to the PrintNode API.

webermfg_0-1629834260898.png

Changing printerId in the body to a different printer that is not the Zebra GK420t yields success, but to the Zebra printer it doesn't work.

 

Looking for some input from someone that has possibly used this solution/similar solutions, and any help would be appreciated.

 

Thanks!

 

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    on at

    Were you able to get this to work @webermfg ??

  • 55552 Profile Picture
    674 on at

    I am starting a similar process, need to print labels (multiple, not just a single) from data in PowerApps. I have a test flow set up, where I pull in the data from PowerApps in JSON format, parse it, then use the parsed data to populate a pre-set up Zebra code (ZPL code), which is a form of Raw printer code.  I have not tested this yet, but will be testing soon and let you know. It may be possible that the Zebra printer cannot accept an image file. I am quite sure it cannot accept a PDF file.

  • Jerzy1 Profile Picture
    16 on at

    Hello,

    Did you manage to print from power automate to ZPL code and print label on Zebra printer ?

    I've got similar project to do.

    thanks.

    Jerzy.

  • Community Power Platform Member Profile Picture
    on at

    Yes! I used the API for print node.

    creely728_0-1693404952045.png

     

  • 55552 Profile Picture
    674 on at

    Yes, I got this working. I actually start from PowerApps, send JSON data to Power Automate, then parse the JSON data, then substitute in the values that I need into the Zebra raw code. Everything worked, including images.

  • Jerzy1 Profile Picture
    16 on at

    Thank you! for quick answer @Runner55552 @Anonymous . Did you try to use different API from Zebra ? I found that printnode is a trial. I found this one SendToFile . 

    I'm completly novice to use API so i have a lot of questions, i hope you don't mind.

    Do you know if i need API if the printer will be connected by USB ?

     Can you @Anonymous share me what is inside this commands (screenshot) (of course please hide login/password etc). I would like just to know how properly add command in powerautomate.

     

    Thank You in advance

    Jerzy

     

  • 55552 Profile Picture
    674 on at

    The company I work for purchased the paid subscription to PrintNode. There may be other methods, but this was recommended by a well-known PowerApps/Power Automate expert (Shane Young from PowerApps 911), and it seemed to be efficient.  Not sure about the USB connection question, but I think for Power Automate to send anything to a printer, there will need to be some sort of API used.  PowerApps now has some limited direct printing ability, but I needed to send ZPL code, so this solution worked best for me.

  • Jerzy1 Profile Picture
    16 on at

    Hi,

    I've installed printnode application (i've got ID of the printer) and i'm able to print from webpage (printnode) some test files. I've generated API key too.

     

    I created powerautomate flow with  HTTPS POST but unfortunately everytime i've got error: "API Key not found".

    {

      "code": "BadRequest",
      "message": "API Key not found",
      "uid": "a2e98ece-cdbe-425c-a19e-d97baa991ff2"
    }

    Where should I add api key ?

     

    Br

    Jerzy

  • Jerzy1 Profile Picture
    16 on at

    Finally! Everything is working and printing from PowerAutomate.

    I use Zebra Designer to design label - change it to ZPL code and save to txt.

    In PowerApps application user put name & surname, it is added to ZPL code and print label with logo.

     Thanks for help!.

     

  • Dankan3d Profile Picture
    4 on at

    Hi Jerzy,

     

    I am trying to do exactly the same. Can you show us your Power Automate flow please?

     

    Many thanks.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard