How to change the ownership of the document to an admin, irrespective of who sent the document?

How to change the ownership of the document to an admin, irrespective of who sent the document?

Scenario: I have set up a workflow/automation in CRM to send documents to Zoho Sign. When the document is sent, the user who triggers the workflow will eventually be the owner of the document. I want to change the owner of the document to an admin, irrespective of who sent the document. How can I achieve this?

When a document is sent for signing using a workflow/Automation, the owner of the document is one who triggered it. So this code will help you to change ownership of document once it is sent out.
  1. You can view the set up function by clicking here.
  2. For OAuth Connection Setup, navigate to Setup -> Developer Space -> Connections -> Add a new Connection. Select Zoho OAuth, then name the connection.

    In the available scopes, select the four Zoho Sign scopes (Zoho Sign.account.ALL, Zoho Sign.documents.ALL, Zoho Sign.setup.READ, Zoho Sign.templates.ALL) and create the connection.

  3. Paste the following code in the function:
  1. requestMap = invokeurl
  2.   [
  3. url: "https://sign.zoho.com/api/v1/requests/"+requestId
  4. type: GET
  5. connection: "<Use Connection Name Here>"
  6.   ];

  7. if(requestMap.containKey("requests"))
  8. {
  9.   requestStr = requestMap.get("requests");
  10.  
  11.   requestObj = requestStr.toMap();
  12.   adminemail = "admin@example.com";//use admin email here
  13.   data = Map();
  14.   data.put("email_id",adminemail);
  15.   // Change Ownership api call
  16.   resp = invokeurl
  17.       [
  18. url: "https://sign.zoho.com/api/v1/requests/"+requestId+"/changeownership"
  19. type: PUT
  20. parameters: data
  21. connection: "<Use Connection Name Here>"
  22.       ];
  23. }

    Access your files securely from anywhere

      Zoho CRM Training Programs

      Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

      Zoho CRM Training
        Redefine the way you work
        with Zoho Workplace

          Zoho DataPrep Personalized Demo

          If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

          Zoho CRM Training

            Create, share, and deliver

            beautiful slides from anywhere.

            Get Started Now


              Zoho Sign now offers specialized one-on-one training for both administrators and developers.

              BOOK A SESSION






                          Quick Links Workflow Automation Data Collection
                          Web Forms Enterprise Begin Data Collection
                          Interactive Forms Workplace Data Collection App
                          Offline Forms Customer Service Accessible Forms
                          Digital Forms Marketing Forms for Small Business
                          HTML Forms Education Forms for Enterprise
                          Contact Forms E-commerce Forms for any business
                          Lead Generation Forms Healthcare Forms for Startups
                          Wordpress Forms Customer onboarding Order Forms for Small Business
                          No Code Forms Construction RSVP tool for holidays
                          Free Forms Travel
                          Prefill Forms Non-Profit

                          Intake Forms Legal

                          Form Designer HR

                          Card Forms Food
                          Assign Forms Photography

                          Translate Forms Real Estate
                          Electronic Forms

                          Notification Emails for Forms Alternatives
                          Holiday Forms Google Forms alternative 
                          Form to PDF Jotform alternative





                                            You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                                Manage your brands on social media

                                                  Zoho Desk Resources

                                                  • Desk Community Learning Series


                                                  • Digest


                                                  • Functions


                                                  • Meetups


                                                  • Kbase


                                                  • Resources


                                                  • Glossary


                                                  • Desk Marketplace


                                                  • MVP Corner


                                                  • Word of the Day


                                                    Zoho Marketing Automation

                                                      Zoho Sheet Resources

                                                       

                                                          Zoho Forms Resources


                                                            Secure your business
                                                            communication with Zoho Mail


                                                            Mail on the move with
                                                            Zoho Mail mobile application

                                                              Stay on top of your schedule
                                                              at all times


                                                              Carry your calendar with you
                                                              Anytime, anywhere




                                                                    Zoho Sign Resources

                                                                      Sign, Paperless!

                                                                      Sign and send business documents on the go!

                                                                      Get Started Now




                                                                              Zoho TeamInbox Resources



                                                                                      Zoho DataPrep Resources



                                                                                        Zoho DataPrep Demo

                                                                                        Get a personalized demo or POC

                                                                                        REGISTER NOW


                                                                                          Design. Discuss. Deliver.

                                                                                          Create visually engaging stories with Zoho Show.

                                                                                          Get Started Now









                                                                                                              • Related Articles

                                                                                                              • Documents - List View

                                                                                                                This section displays a list of all the documents you have sent or received on your Zoho Sign account. The list view shows the name, document owner, recipients, date of creation, folder name and signature status for each document. Each document has ...
                                                                                                              • Documents - Detailed View

                                                                                                                This page presents detailed information on documents sent out for signatures. The detailed view of any document can be accessed by clicking the document's name in the list view. In the detailed view page, the following information can be found: ...
                                                                                                              • Document and Template sharing

                                                                                                                Sharing documents Available only in the Enterprise Edition This enhancement allows admins to share the documents of one or more users with other users across their Zoho Sign organization. This can come in handy for users working in the same team such ...
                                                                                                              • Document ID

                                                                                                                You can choose to include a unique Document ID in your documents that were sent out for signatures, if required. How to insert Document ID in documents Click Settings in the left navigation panel. Choose Account settings. Choose Sending options from ...
                                                                                                              • Change subscription plan

                                                                                                                Licensing in Zoho Sign is based on the number of permissible users per organization or the number of documents sent per month. Changing your subscription plan To change your subscription plan, Go to 'Settings' and choose 'Subscription details' tab ...
                                                                                                                Wherever you are is as good as
                                                                                                                your workplace

                                                                                                                  Resources

                                                                                                                  Videos

                                                                                                                  Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                                  eBooks

                                                                                                                  Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                                  Webinars

                                                                                                                  Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                                  CRM Tips

                                                                                                                  Make the most of Zoho CRM with these useful tips.



                                                                                                                    Zoho Show Resources