Zoho Desk associate accounts with contacts

Zoho Desk associate accounts with contacts

  1. https://desk.zoho.com/DeskAPIDocument#Contacts#Contacts_Associateaccountswithcontact - API method
  2. //
  3. paramMap = Map();
    dataList = list();
    rowMap = Map();
    rowMap.put("id",Account_ID);
    rowMap.put("isAccountTicketsViewable",true);
    dataList.add(rowMap);
    paramMap.put("data",dataList);
    info paramMap;
    response = invokeurl
    [
        url :"https://desk.zoho.com/api/v1/contacts/" + Contact_ID + "/associateAccounts"
        type :POST
        parameters:paramMap.toString()
        connection:"desk"
    ];
    info response;
I am getting answer:
{"data":[{"id":XXXXXXXXXXXXXXX,"isAccountTicketsViewable":true}]}{"errorCode":"FORBIDDEN","message":"You are not authorized to access this resource."}

Is there exist way to make it work simply with Desk Connection, without generate
Zoho-oauthtoken?

If no, what best way to generate
Zoho-oauthtoken with deluge, better all generations in one Custom Function or mb with some Global Variabales?

Thank You!
    Zoho Desk Resources

    • Desk Community Learning Series


    • Digest


    • Functions


    • Meetups


    • Kbase


    • Resources


    • Glossary


    • Desk Marketplace


    • MVP Corner


    • Word of the Day


      Zoho CRM Plus Resources

        Zoho Books Resources


          Zoho Subscriptions Resources

            Zoho Projects Resources


              Zoho Sprints Resources


                Zoho Orchestly 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




                          Zoho Writer Writer

                          Get Started. Write Away!

                          Writer is a powerful online word processor, designed for collaborative work.

                            Zoho CRM コンテンツ




                              ご検討中の方