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: