How to get full data for salesperson in Zohobook

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

  1. salesperson = zoho.books.getRecords("salespersons",organization_id, "zoho_books");

  2. salesperson = zoho.books.getRecordsByID("salespersons",organization_id,salesperson_id,"zoho_books");

  3. params = Map();
  4. params.put("organization_id",organization_id);
  5. params.put("responseFormat","json");
  6. response = invokeurl
  7. [
  8. url :"https://books.zoho.com/api/v3/salespersons"
  9. type :GET
  10. parameters:params
  11. connection:"zoho_books"
  12. ];
it will return

  1. "code": 57,
  2. "message": "You are not authorized to perform this operation"
  3. }
  4. 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: 

  1. ZohoBooks.accountants.All
  2. ZohoBooks.bills.All
  3. ZohoBooks.contacts.All
  4. ZohoBooks.custommodules.ALL
  5. ZohoBooks.estimates.All
  6. ZohoBooks.fullaccess.all
  7. ZohoBooks.invoices.All
  8. ZohoBooks.items.All
  9. 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


      Zoho Developer Community








                                Zoho Desk Resources

                                • Desk Community Learning Series


                                • Digest


                                • Functions


                                • Meetups


                                • Kbase


                                • Resources


                                • Glossary


                                • Desk Marketplace


                                • MVP Corner


                                • Word of the Day



                                    Zoho Marketing Automation


                                            Manage your brands on social media



                                                  Zoho TeamInbox Resources

                                                    Zoho DataPrep Resources



                                                      Zoho CRM Plus Resources

                                                        Zoho Books Resources


                                                          Zoho Subscriptions Resources

                                                            Zoho Projects Resources


                                                              Zoho Sprints Resources


                                                                Qntrl Resources


                                                                  Zoho Creator Resources


                                                                    Zoho WorkDrive Resources



                                                                      Zoho Campaigns Resources

                                                                        Zoho CRM Resources

                                                                        • CRM Community Learning Series

                                                                          CRM Community Learning Series


                                                                        • Tips

                                                                          Tips

                                                                        • Functions

                                                                          Functions

                                                                        • Meetups

                                                                          Meetups

                                                                        • Kbase

                                                                          Kbase

                                                                        • Resources

                                                                          Resources

                                                                        • Digest

                                                                          Digest

                                                                        • CRM Marketplace

                                                                          CRM Marketplace

                                                                        • MVP Corner

                                                                          MVP Corner







                                                                            Design. Discuss. Deliver.

                                                                            Create visually engaging stories with Zoho Show.

                                                                            Get Started Now