Get Sales Order Template (PDF) and send to printer via Custom Button

Get Sales Order Template (PDF) and send to printer via Custom Button

Hi,

I'm trying to click a custom button which sends a specific PDF template to a printer but I'm stuck!

The API documentation says it's possible but I'm unsure how to implement.

Any help appreciated

-----------

Code I have for the PDF after I've set the correct template is below. I just need to figure out how to send the PDF file to print

  1. pdfUrl = "https://books.zoho.com/api/v3/salesorders/" + id + "?accept=pdf&organization_id=" + orgId;
  2. //
  3. salesorderPDF = invokeurl
  4. [
  5. url :pdfUrl
  6. type :GET
  7. connection:"zbooks"
  8. ];

API Docs Screenshot