Error: Invalid valued passed for authtoken on Getrecordsbyid method
I have written a custom function for Sales Order Module. In the custom function, I need to get zcrm_contact_id of the customer.
I get the customer id from the sales order and use getrecordsbyid method to get the customer details. My code is below.
- customerid = salesorder.get("customer_id");
- salesorderdate = salesorder.get("date").toDate();
- response = zoho.books.getRecordsByID("Contacts","xxxxxxx",customerid);
- x = response.get("message");
- info x;
I am getting the Invalid value passed for authtoken. The orgid passed in the method is correct. I am not sure where is the authtoken value.
Any help?