How to get full data for salesperson in Zohobook
Hi,
I'm trying to get full data for salesperson but can't do it
I see we can using some ways
- salesperson = zoho.books.getRecords("salespersons",organization_id, "zoho_books");
- salesperson = zoho.books.getRecordsByID("salespersons",organization_id,salesperson_id,"zoho_books");
- params = Map();
- params.put("organization_id",organization_id);
- params.put("responseFormat","json");
- response = invokeurl
- [
- url :"https://books.zoho.com/api/v3/salespersons"
- type :GET
- parameters:params
- connection:"zoho_books"
- ];
it will return
- "code": 57,
- "message": "You are not authorized to perform this operation"
- }
- zoho code": 14, "message": "The request could not be authenticated as the authentication value you entered is invalid. Enter a valid authentication value and try again
My zoho_books connections:
- ZohoBooks.accountants.All
- ZohoBooks.bills.All
- ZohoBooks.contacts.All
- ZohoBooks.custommodules.ALL
- ZohoBooks.estimates.All
- ZohoBooks.fullaccess.all
- ZohoBooks.invoices.All
- ZohoBooks.items.All
- ZohoBooks.salesorders.All
Do you know which type of scope should I choose?
Another question is how can I get the custom fields of a salesperson?
Thanks