Retrieving Invoices via zoho.crm.getRecordById failing in a deluge function?

Retrieving Invoices via zoho.crm.getRecordById failing in a deluge function?

Hi,

While updating a deluge function in CRM (that creates a corresponding invoice in Books), to use OAuth, it looks like I'm getting { "status": "failure" } at the very start of the function (even the old, working code no longer appears to work).

The relevant code is:

respInvoice = zoho.crm.getRecordById("Invoices",invoiceId);
info respInvoice;

returns {"status":"failure"} with no additional information, and the APi documentation doesn't give any information on failures (https://www.zoho.com/deluge/help/crm/get-record-by-id.html). Also, invoiceID is valid (I checked with an 'info invoiceId;' when running it to test

Anyone have any ideas here? Are there new OAuth requirements to this, even though I'm writing a deluge function in CRM to access zoho.crm?