Project documents are often prepared before development begins. When files such as product requirements, design files, guidelines, or plans are stored in a shared folder in Zoho WorkDrive, teams can automate copying them to the corresponding project team folder within Zoho Projects when a project begins.
For example, when the Aurora Smart Water Bottle Design project is updated to In Progress status, teams can automate copying the project related files from a matching subfolder in Zoho WorkDrive automatically. This makes them available within the project without any manual file transfers immediately when the project begins.
To configure this automation:
Step 1: Prepare the source folder in Zoho WorkDrive
- Create a team folder named Project Templates in the Zoho WorkDrive.
- Inside this folder, create a subfolder for the project. The subfolder name can follow any of these formats:
- Exact project name, such as Aurora Smart Water Bottle Design
- Project key, such as MH-1009. Project key followed by a space and a name, such as MH-1009 Aurora Smart Water Bottle Design
- Name containing the full project name, such as 'Aurora Smart Water Bottle Design - Templates' or 'Documents - Aurora Smart Water Bottle Design'
- Upload the relevant project documents into the corresponding subfolder. The files can have any names.
- If you rename a project, update its source subfolder name to match one of the supported formats.
- Only files placed directly inside the source subfolder are copied. Nested folders and their contents are not processed.
- If multiple subfolders match the project, the function stops instead of choosing one arbitrarily.
Step 2: Copy the Zoho WorkDrive IDs
- Open Project Templates and copy the ID after /ws/ in the browser address bar.
- Open a project's team folder from the project's Documents tab and copy the ID after /teams/. Use the team ID from the folder containing the project folders.
Step 3: Create the connections
- Navigate to
> Developer Space > Connections and create two connections with the following scopes:
- Zoho WorkDrive connection:WorkDrive.files.ALL, WorkDrive.workspace.ALL, WorkDrive.team.READ, WorkDrive.teamfolders.READ
- Zoho Projects connection: ZohoProjects.projects.READ, ZohoProjects.tasks.ALL, ZohoProjects.portals.READ, ZohoProjects.documents.READ, ZohoProjects.portals.CREATE, ZohoPC.files.ALL, ZohoFiles.files.ALL
- Click Connect and authorize both connections.
Step 4: Create the custom function
- Navigate to
> Developer Space > Custom Functions.
- Select the Projects tab, and create a custom function by pasting this Deluge script.
- Replace the two placeholder IDs in the script with the IDs copied in step 2, keeping the quotation marks.
- Ensure the connection names match those in the script and replace the US data center domains with the appropriate regional domains if your portal uses another data center.
- Add these arguments and map them to the corresponding project fields:
- projectId : Project System ID
- portalId : Portal System ID
- Click Save.
Step 5: Create and save the workflow rule as shown below:
- The function retrieves only the first page of subfolders in Project Templates and files in the matched project subfolder. Items on subsequent pages are not processed.
- Files with the same name in the destination folder are replaced.
When a project’s status changes to In Progress, the workflow rule automatically uploads the related documents to the project’s team folder in Zoho WorkDrive. This keeps essential files ready for the team as work begins, without manual transfers.
If you have any questions, please drop your comments below or reach out to us at support@zohoprojects.com.