If you’ve ever searched for “Zoho WorkDrive API” online, you’d realize that there isn’t an official document published yet. The closest thing to one is this unpublished API doc that Zoho might provide you when you request for support. While useful, it’s not very comprehensive and the explanations are not thorough.
We’re here to walk you through some of the actions that you may need to perform on WorkDrive via custom function that the documentation does not clearly spell out.
You will learn how to:
This is part of The Workflow Academy’s Zoho training series to help you attain rockstar Zoho admin status.
Here are some cool ways you can implement this code from Zoho CRM:
Before we begin, the following OAuth Connections scopes are needed:
Fortunately, Zoho has made this part easy with the createFolder function. Just input the subfolder name, parent folder ID and your WorkDrive Connection name.
Note: Folder ID can be found at the end of the WorkDrive folder URL
“https://workdrive.zoho.com/home/…/folders/aeci1a880e2a09bcf4641b2ef7c60e81b7b2f”
This script creates a new blank Zoho Writer doc and stores in the specified WorkDrive folder.
This function creates a document by merging fields into a Writer template, and stores in a WorkDrive folder.
To create an external share link, an API call with a header and specific parameters are needed.
Header
Parameters
Below is the example script to generate an external share link. Configure the parameters attributes based on your requirements accordingly.
If you are generating an external share link for a new blank doc that you have created via Deluge, chances are, you might run into this error:
{“errors”:[{“id”:”R012″,”title”:”Resource is not in active status to process this action”}]}
For some reason, when a new blank Writer Doc is created via custom function, it is by default in a DRAFT status. Because of that, the generate external share link function cannot execute successfully. In order to overcome this, you would first need to change the document status to ACTIVE before generating the share link. Here’s how you can do it.
The script below marks the newly created Writer Doc as ready, converting it from DRAFT status to ACTIVE.
Click here to copy the scripts. For more Zoho-wizardry, check out our GitHub page.
When scripting, ask yourself this question – will this value ever be null? If it’s a yes, that’s a place for a null check! Here are 3 tips and best practices to help you kickstart the habit....
Learn to create a customized inventory report with Zoho Analytics. This tutorial contains a link to our GitHub page for SQL code that will help with your table creations....
How nice would it be if you could, at the press of a button, send clients an email w/a Zoho Books invoice? Replete with “Pay Now” buttons that link to PayPal/Stripe/other payment gateways?...
Whether you work primarily out of CRM or the Zoho Finance Suite, you can use Analytics to build commissions dashboards. This involves some fairly simple SQL code....
If you are an inventory manager, this blog post could change your life. If you are not, it will at least teach you how to build some wicked inventory tracking for your business....
Convert fields, related activities, attachments, notes and more from one record to another across modules via custom function....
Comments