getRecordsById not working for fetching from Books custom module
The custom function I am working on is pretty simple - I need to fetch a record from a custom module in Books. Here is what i am using:
response = zoho.books.getRecordsByID("Countries of Origin",orgID,recordID);
info response;
OR
response = zoho.books.getRecordsByID("cm_shipping_detail",orgID,recordID);
info response;
I keep getting either an error that I am not authorized to access this info (I'm the super admin) or it's java.lang.Object@xxxxxxx as the response.
Can anyone help me figure out what is wrong?