<@UEH8GAN8M> Yes you can, ZPL label is just a TEXT...
# suitescript
a
@aerin Yes you can, ZPL label is just a TEXT file, even if the file module does not allow you to save as ZPL per say, you can create it as text and rename it.
a
but then I couldn't have a suitelet that returns the file using serverResponse.writeFile({}), it would have to be a text file, then the user would have to save, and rename it to print it
previously I returned the text file, created a blob object, and then used that to create the zpl file and returned it to the user. I was kind of hoping to skip that and use just the suitelet
a
You should be able to do what you need if you use
writePage
instead of
writeFile
.
Untitled
The user should automatically be asked to download a file, make sure the file name extension is ZPL.
a
thank you