Hi Team
I have created an invoice within Zoho Invoice from Creator. I want to extract the Invoice ID from the mapped invoice. However the following code to populate Invoice_ID does not work. As a matter of fact Invoice_ID, Invoice_Status and Invoice_Sent_Date do not populate at all (these 3 fields need to be populated right after the invoice gets created).
gateWays={ "PayPal" : 1, "Authorise.Net" : "", "GoogleCheckout" : "" };
invCustResponse = zoho.invoice.createcustomer({ "CustomerName" : input.Customer_Name, "FirstName" : input.Name, "LastName" : input.Surname, "CurrencyCode" : "AUD", "Email" : input.Email_Address, "Mobile" : input.Mobile_Number },coName);
invResp = zoho.invoice.createinvoice({ "CustomerName" : input.Customer_Name, "ItemName" : txtItem, "ItemRate" : input.Fee, "PaymentGateways" : gateWays },true,coName);
input.Invoice_ID=(invResp.get("InvoiceID")).toLong();
input.Invoice_Status="Sent 1";
input.Invoice_Sent_Date=zoho.currenttime;
Can anyone shed any light on this. It does not matter where I put the code to update invoice status and sent date in the script, they do not update. Any help would be massively appreciated.
Thanks
Jason