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.   requestObj = requestStr.toMap();");
  11.   requestId = requestObj.get("request_id");
  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. }

    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








                                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







                                                                                            You are currently viewing the help articles of Sprints 1.0. If you are a user of 2.0, please refer here.

                                                                                            You are currently viewing the help articles of Sprints 2.0. If you are a user of 1.0, please refer here.



                                                                                                  • Related Articles

                                                                                                  • 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 ...
                                                                                                  • Document completion

                                                                                                    Once the document signature process has been completed, the sender can control who will receive email notifications with a signed copy and certificate of completion. How to control who receives email notifications upon document completion Click ...
                                                                                                  • How to add attachments alone to the contact from which the document was sent?

                                                                                                    Scenario: I send the documents to Zoho Sign using the 'Send with Zoho Sign' button on the Contacts view page. Once the document is sent for signing, the document details and the attachments are added to the 'Zoho Sign Documents' module. I want the ...
                                                                                                  • Trusted Document Timestamping

                                                                                                    Available only in the paid plans Timestamping a document proves that the contents of the document existed in that form on that particular date and time so that no one can backdate the timestamp entries. It also marks the signature with date and time ...
                                                                                                    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