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.
- You can view the set up function by clicking here.
- 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.
- Paste the following code in the function: