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

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


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 = "" + id + "?accept=pdf&organization_id=" + orgId;
  2. //
  3. salesorderPDF = invokeurl
  4. [
  5. url :pdfUrl
  6. type :GET
  7. connection:"zbooks"
  8. ];

API Docs Screenshot

    Zoho Developer Community

                              Zoho Desk Resources

                              • Desk Community Learning Series

                              • Digest

                              • Functions

                              • Meetups

                              • Kbase

                              • Resources

                              • Glossary

                              • Desk Marketplace

                              • MVP Corner

                              • Word of the Day

                                  Zoho Marketing Automation

                                          Manage your brands on social media

                                                Zoho TeamInbox Resources

                                                  Zoho DataPrep Resources

                                                    Zoho CRM Plus Resources

                                                      Zoho Books Resources

                                                        Zoho Subscriptions Resources

                                                          Zoho Projects Resources

                                                            Zoho Sprints Resources

                                                              Qntrl Resources

                                                                Zoho Creator Resources

                                                                  Zoho WorkDrive Resources

                                                                    Zoho Campaigns Resources

                                                                      Zoho CRM Resources

                                                                      • CRM Community Learning Series

                                                                        CRM Community Learning Series

                                                                      • Tips


                                                                      • Functions


                                                                      • Meetups


                                                                      • Kbase


                                                                      • Resources


                                                                      • Digest


                                                                      • CRM Marketplace

                                                                        CRM Marketplace

                                                                      • MVP Corner

                                                                        MVP Corner



                                                                          Design. Discuss. Deliver.

                                                                          Create visually engaging stories with Zoho Show.

                                                                          Get Started Now