Reputation: 101
I'm trying to access the custom fields of my invoices and I'm getting the following error:
Any ideas on how to solve this?
Upvotes: 1
Views: 364
Reputation: 443
To help debug the issue:
display the values in invoiceID
and test2
and make sure they are not empty or zoho numbers (rather than strings)
info invoiceID;
info test2;
Try running the same url in a browser and/or curl to see if the behavior is the same or successful.
Try putting a 'try/catch' around the invokeurl cmd. Sometimes (but not always) the catch(err) will report more specific error information.
try {
webhooktest = invokeurl
[
url: "https:example.org?invoice_id=" + invoiceID + "&tips_ncf=" + test2
]
info "Webhooktest: [" + webhooktest + "]";
}
catch(err)
{
info err;
}
Upvotes: 0