The button should print as described 2 invoice and one packing slip from the invoice details page. The option of changing print copy amount would be good but not so important as I can always use the normal print method to do this if need be. I would like the button to do the printing with no more interaction from the user. just push the button and it prints the copies
invoiceID = invoice.get("invoice_id");
invoicedate = invoice.get("date").toDate();
organizationID = organization.get("organization_id");
invoiceIdList = List();
invoiceIdList.add(invoiceID);
json = Map();
response = invokeurl
[
url :"https://books.zoho.com/api/v3/invoices/pdf?invoice_ids=" + invoiceIdList + "&organization_id=" + organizationID
type :GET
connection:"books"
];
info response;
just pdf file export not print them