Extension pointers for integrating Zoho CRM with Zoho products #9: Track and share Zoho WorkDrive files from within Zoho CRM

Extension pointers for integrating Zoho CRM with Zoho products #9: Track and share Zoho WorkDrive files from within Zoho CRM

Viewing and tracking WorkDrive files from within Zoho CRM ensures you have greater visibility and accessibility. 
 
In our previous post, we set up a Team Folder and contact-specific folders within it to upload files for each contact. In continuation of that post, let's look at how to view the files in a contact's related list by retrieving and listing all of the files in the contact's WorkDrive folder. This allows you to keep track of a contact's files without having to switch between WorkDrive and CRM.
 
In addition to maintaining files within the team, you can easily share files with contacts through email by using the Attach file from Zoho WorkDrive option. You can also create a custom external share link and share it with the user through chat if necessary. 
 
Connector APIs
 
The Zoho WorkDrive REST APIs added for the example are as follows:
 
Connector API Name
Method type
URL
Get files of a folder
GET
Create external share custom link
POST
 
Creating a related list for the Contacts module to display the files present in the contact's WorkDrive folder
  • Create a custom related list called "WorkDrive files" using the Related Details feature available in the Components section of the Zoho Developer console, then associate a function to perform the desired action.
WorkDrive files - Related list function code snippet
//Retrieving the contact record and fetching the full name
response = zoho.crm.getRecordById("Contacts",contact.get("Contacts.ID").toLong());
info response;
dynamic_map = Map();
folderid = response.get("testsupport__Folder_ID");
info folderid;
dynamic_map.put("file_folder_id",folderid);
 
/* Invoking the "Get files of a folder" API to get the files present in the folder ID updated in the custom field "Folder ID" of the record*/
filesresp = zoho.crm.invokeConnector("testsupport.WorkDrive.getfilesofafolder",dynamic_map);
filesresponse = filesresp.get("response");
filesdata = filesresponse.get("data");
finalresponse = "";
count = 1;
if(filesdata != null)
{
recordsXmlStr = "<record>";
for each value in filesdata
{
attributes = value.get("attributes");
dynamic_map = Map();
dynamic_map.put("resource_id",value.get("id"));
dynamic_map.put("link_name",attributes.get("name") + "-link");
/* Invoking the "Create external share custom link" API to create a custom share link to externally share the file*/
linkresp = zoho.crm.invokeConnector("testsupport.WorkDrive.createexternalsharecustomlink",dynamic_map);
linkresponse = linkresp.get("response");
linkdata = linkresponse.get("data");
linkattributes = linkdata.get("attributes");
recordsXmlStr = recordsXmlStr + "<row no='" + count + "'>";
recordsXmlStr = recordsXmlStr + "<FL val='Name'>" + attributes.get("name") + "</FL>";
recordsXmlStr = recordsXmlStr + "<FL val='Extension'>" + attributes.get("extn") + "</FL>";
recordsXmlStr = recordsXmlStr + "<FL val='Type'>" + attributes.get("type") + "</FL>";
recordsXmlStr = recordsXmlStr + "<FL val='Permalink'>" + attributes.get("permalink") + "</FL>";
recordsXmlStr = recordsXmlStr + "<FL val='External share link'>" + linkattributes.get("link") + "</FL>";
recordsXmlStr = recordsXmlStr + "</row>";
count = count + 1;
}
recordsXmlStr = recordsXmlStr + "</record>";
finalresponse = finalresponse + recordsXmlStr;
}
else
{
finalresponse = finalresponse + "<error>=><message>No files associated.</message></error>";
}
return finalresponse;
 
  • The above code snippet fetches the record details for the current contact to retrieve the custom field "Folder ID" value of the customer. 
  • The Folder ID is then delivered to the Get files of a folder API to retrieve files from the folder for the contact from Zoho WorkDrive.
  • These files are then displayed as a related list called "WorkDrive files" listing some relevant details like Name, Extension, Type, Permalink, and External share link.
  • External share link: The resource ID and the name retrieved from the result of the Get files of a folder API are delivered to the Create external share custom link API to create a custom link to share the file externally. 
Sample output
 
After uploading the files as depicted in the earlier post, click the WorkDrive files related list available in the CRM contact's record details page to view the files inside the contact's WorkDrive folder.
 

  • You can use the External share link to share files with the contact through chat individually.


You can also send the contact's files using the Email related list option. Since the integration functionality (create folder and upload files operations) performed in Zoho CRM is also synchronized in Zoho WorkDrive, you can easily select and share files with contacts in just a few clicks through email.

We hope you found this information helpful. Keep following this space for more advice!

    Access your files securely from anywhere


            Zoho FSM Video Tutorials


                  All-in-one knowledge management and training platform for your employees and customers.






                                        Zoho Developer Community




                                                              • Desk Community Learning Series


                                                              • Digest


                                                              • Functions


                                                              • Meetups


                                                              • Kbase


                                                              • Resources


                                                              • Glossary


                                                              • Desk Marketplace


                                                              • MVP Corner


                                                              • Word of the Day


                                                              • Ask the Experts



                                                                        • Sticky Posts

                                                                        • Announcing the new SKILL.md for Zoho CRM and the updated OAS repository!

                                                                          We are introducing a new zoho-crm skill to make working with Zoho CRM Developer tools (like APIs, functions, widgets, client scripts, queries etc) easier and faster, with the help of AI in your preferred AI harness like Claude Code, Codex, Cursor, VSCode
                                                                        • Kaizen #261 : Using Zoho CRM Skill to generate complex COQL queries

                                                                          Hello everyone, In the previous Kaizen posts, we introduced the zoho-crm SKILL.md and discussed how it can help you when you are working with Zoho CRM APIs and Client Script. In this Kaizen, we will focus on using the Zoho CRM `SKILL.md` with GitHub Copilot
                                                                        • Kaizen #256 - Build an Arrival Readiness Web Tab in Zoho CRM

                                                                          Hi everyone! Welcome back to the Kaizen series! In the post, we discuss a use case in hospitality industry: how an Arrival Readiness web tab widget can be used to let reception staff identify and resolve issues before arrival of guests. Use case In the
                                                                        • Kaizen #198: Using Client Script for Custom Validation in Blueprint

                                                                          Nearing 200th Kaizen Post – 1 More to the Big Two-Oh-Oh! Do you have any questions, suggestions, or topics you would like us to cover in future posts? Your insights and suggestions help us shape future content and make this series better for everyone.
                                                                        • Kaizen #226: Using ZRC in Client Script

                                                                          Hello everyone! Welcome to another week of Kaizen. In today's post, lets see what is ZRC (Zoho Request Client) and how we can use ZRC methods in Client Script to get inputs from a Salesperson and update the Lead status with a single button click. In this


                                                                        Manage your brands on social media



                                                                              Zoho TeamInbox Resources



                                                                                  Zoho CRM Plus Resources

                                                                                    Zoho Books Resources


                                                                                      Zoho Billing Resources

                                                                                        Zoho Projects Resources


                                                                                          Zoho Sprints Resources


                                                                                            Qntrl Resources


                                                                                              Zoho Creator Resources



                                                                                                  Zoho CRM Resources

                                                                                                  • CRM Community Learning Series

                                                                                                    CRM Community Learning Series


                                                                                                  • Kaizen

                                                                                                    Kaizen

                                                                                                  • Functions

                                                                                                    Functions

                                                                                                  • Meetups

                                                                                                    Meetups

                                                                                                  • Kbase

                                                                                                    Kbase

                                                                                                  • Resources

                                                                                                    Resources

                                                                                                  • Digest

                                                                                                    Digest

                                                                                                  • CRM Marketplace

                                                                                                    CRM Marketplace

                                                                                                  • MVP Corner

                                                                                                    MVP Corner






                                                                                                      Design. Discuss. Deliver.

                                                                                                      Create visually engaging stories with Zoho Show.

                                                                                                      Get Started Now


                                                                                                        Zoho Show Resources

                                                                                                          Zoho Writer

                                                                                                          Get Started. Write Away!

                                                                                                          Writer is a powerful online word processor, designed for collaborative work.

                                                                                                            Zoho CRM コンテンツ


                                                                                                              Nederlandse Hulpbronnen


                                                                                                                  ご検討中の方




                                                                                                                            • Recent Topics

                                                                                                                            • Zoho Inventory | Can't uncheck/turn off Advance Tracking

                                                                                                                              Hi, I wanted to know if there's a way to turn off Advanced Tracking (such as Serial Number or Batch Tracking) for an item in Zoho Inventory. I’ve read that you might need to delete associated transactions and clear the opening stock to disable these features.
                                                                                                                            • How to Disable this Pop-up

                                                                                                                              We believe this has been added recently, correct? How to disable this? we receive lot of complaints from our team from SG & MY
                                                                                                                            • Categorize Items with Item Headers

                                                                                                                              Hello customers, Did you ever want to classify items based on specific categories to help your customers understand your invoice better? With the new Item Header feature, you can easily categorize items in your invoices and estimates and give them a common title.  Item Headers are available in the Invoices, the Recurring Invoices and the Estimates module. It can be carried forward from estimates to invoices at the time of converting the estimates.  To add an item header: Go to the Estimates, Invoices
                                                                                                                            • A way to report on all leads for a given month

                                                                                                                              Is there a way to report on ALL leads created in one month by source.  I need to include both open, closed lost and converted leads.   Right now I can only see source of non converted lead and cannot find a way to add the converted leads to the same report.   I'm trying to do this to gain insight into my sources of leads, volume in and disposition of each lead.
                                                                                                                            • Unable to delete domains from Zoho Campaigns

                                                                                                                              This error occurs while deleting a domain "This domain cannot be deleted because we've found $1sender addresses associated to it." But I have no more sender addresses of this domain anymore. I can't delete the domain.
                                                                                                                            • Ability to translate Zoho CRM Kiosks

                                                                                                                              Hi team, Is support for translating kiosk text and screen names in the Zoho CRM translation tool planned on the roadmap? Thanks,
                                                                                                                            • [Critical] Massive delays with e-mail

                                                                                                                              It takes half an hour or longer for emails to arrive or replies to go out! Another thing I have noticed with outgoing e-mails is that I see an error message when I click on "Show original" (tab "HEADER"). If I click on the "CONTENT" tab, the mail body
                                                                                                                            • WorkDrive Desktop Sync Is Being Deprecated: Move to WorkDrive TrueSync for a Smarter Experience

                                                                                                                              Hi everyone, We are excited to share a better, smarter way to access and manage your files directly from your computer! We’re transitioning from our legacy Desktop Sync app to WorkDrive TrueSync, designed to give you faster performance,greater flexibility,
                                                                                                                            • Automating CRM backup storage?

                                                                                                                              Hi there, We've recently set up automatic backups for our Zoho CRM account. We were hoping that the backup functionality would not require any manual work on our end, but it seems that we are always required to download the backups ourselves, store them,
                                                                                                                            • Account for Cryptocurrency Holdings in Zoho Books/Custom Currencies?

                                                                                                                              Hello, I've recently started using Zoho to run my small business and I've really been enjoying all of its features. However, I've been struggling to find a way to account for cryptocurrencies in Zoho Books. My company mines a Cryptocurrency token called
                                                                                                                            • CNIL - Suivi de Pixel

                                                                                                                              Bonjour à tous, À la suite de la nouvelle recommandation de la CNIL sur les pixels de suivi dans les e-mails, savez-vous si Zoho Campaigns permet : de conditionner le suivi des ouvertures au consentement de chaque contact ; de proposer un lien permettant
                                                                                                                            • #21 The Customer Sent Part of It Back

                                                                                                                              Ravi delivered 200 trays to a customer and raised an invoice for the full order. Two days later, the customer returned 60 trays. The customer had also paid an advance against the invoice. Ravi now needs to account for the returned items, adjust the amount
                                                                                                                            • Zoho Assist Feature Update: November 2026

                                                                                                                              Screen Analyzer Zoho Assist’s Screen Analyzer, part of Answer Bot, helps technicians troubleshoot faster during live sessions. Capture the full remote screen or a specific portion, and it instantly analyzes the snapshot to detect errors and issues. It
                                                                                                                            • Zoho Assist Feature Update: October 2026

                                                                                                                              H.265 support for Native Viewer and Mobile Viewer H.265 (HEVC) delivers sharper screen sharing at lower bandwidth than H.264. Already live in the Web Viewer, the codec is now available for the Windows Native Viewer and Mobile Viewers too. Support is in
                                                                                                                            • Trident Missing

                                                                                                                              No way you guys get so close to having trident complete for over a year then just kill it off. Wow just wow
                                                                                                                            • Sheet co-edit: no live presence — also on Collaborate demo?

                                                                                                                              Two Sheet co-edit sessions open OK (same document_id, document.edit: true), but there’s no real-time collaboration: no cell highlights, Group Chat → Users stays empty. Writer co-edit works on the same Office Integrator setup. We see the same on the official
                                                                                                                            • Feature Request: Fully customizable record layouts in Zoho FSM (movable sections and custom subform tables)

                                                                                                                              Hi Zoho FSM Team and Community, We’d like to suggest a feature that we think would help many FSM users: full control over the layout of record detail pages, starting with the Work Order view. Current situation When you open a Work Order, its sections
                                                                                                                            • KB Articles from Zoho Learn - Import as .md

                                                                                                                              I love the concept of being able to use articles from Zoho Learn as knowledge base articles for Zia Agents. This will absolutely help with proper documentation and organization of company processes and SOPs. This was a great concept. However, even when
                                                                                                                            • Why don't Zia agents support file uploads?

                                                                                                                              I am trying to build a Zia Agent that allows uploading of a PDF file and uses the GLM5 model to process it and extract information. But agents.zoho.com has no way to enable file uploads on the agent. Additionally, GLM5 based agents keep outputting their
                                                                                                                            • Building Toppings #10 - Using signals to build real-time notifications between Bigin and Zoho Desk

                                                                                                                              Hello Biginners! In our previous post, we covered Bigin Variables and Widgets. In this post, we'll explore another component: Signals. To show how Signals work, we will build a real-time use case integrating Bigin and Zoho Desk. It connects Zoho Desk
                                                                                                                            • Cliq iOS can't see shared screen

                                                                                                                              Hello, I had this morning a video call with a colleague. She is using Cliq Desktop MacOS and wanted to share her screen with me. I'm on iPad. I noticed, while she shared her screen, I could only see her video, but not the shared screen... Does Cliq iOS is able to display shared screen, or is it somewhere else to be found ? Regards
                                                                                                                            • ¡Gracias por acompañarnos en los Workshops de Zoho España!

                                                                                                                              Los pasados 3 y 4 de noviembre celebramos una nueva edición de los Workshops de Zoho España en el Hotel NH Las Ventas de Madrid. Dos jornadas de formación práctica, demostraciones en directo y encuentros con expertos de Zoho en las que compartimos conocimientos,
                                                                                                                            • Mass Update Option for Changing Work Order Owner

                                                                                                                              Hello FSM Team/Mr. Abid, We would like to inquire if there is an option to mass update or bulk change the Owner of Work Orders in Zoho FSM. Current Situation: At the moment, the Owner of a Work Order can only be changed individually, which becomes time-consuming
                                                                                                                            • Never miss a follow-up with personal reminder agent | Zoho Cliq AI Use Case #03

                                                                                                                              A task mentioned mid-conversation rarely survives the conversation. Someone asks you to follow up, you say you will, and by the time you remember, the message is three hundred lines back, buried under two meetings and a dozen other threads. Personal Task
                                                                                                                            • Calendar won't load

                                                                                                                              I run into this problem about once a week, where I try to open my Zoho calendar in a web browser, and it just gets stuck, waiting forever to load (see attached screenshot). I'm usually using Edge or Duck-Duck-Go browser. Sometimes it loads just fine,
                                                                                                                            • Change 'default' project dashboard

                                                                                                                              Is it possible to change the default project dashboard for all projects? Both in layout and in what widgets are shown? We have a lot of (short-running) projects and I want to quickly see the tasks and milestones when I open a Project, but I don't want to change the layout for all my projects manually. Thanks, Menno
                                                                                                                            • Multiple subscription plan line items in Zoho Billing quotes

                                                                                                                              I run an IT company and sell a lot of licences. A client might have multiple subscription plans including software licences in different categories. A client might have Microsoft licences, antivirus licences, web hosting and maintenance package services.
                                                                                                                            • [ZohoDesk] Improve Status View with a new editeble kanban view

                                                                                                                              A kanban view with more information about the ticket and the contact who created the ticket would be valueble. I would like to edit the fields with the ones i like to see at one glance. Like in CRM where you can edit the canvas view, i would like to edit
                                                                                                                            • Live connection to DS files in Zoho Creator / ChatGPT

                                                                                                                              As an idea, we are using ChatGPT to build with Zoho Creator (outside of Zia), which is works brilliantly to assist write deluge, provide test suggesitons etc. Currently we are uploading the DS files which are very point in time, it would be great to have
                                                                                                                            • Unable to integrate Whatsapp Messaging into Zoho CRM - Business Messaging

                                                                                                                              Hello, I want to set up Business Messaging in our Zoho CRM and am struggling to set it up. I have logged into the account and our facebook business page, our business shows in the dropdown for WhatsApp Business Account but does not for WhatsApp Business
                                                                                                                            • Files in Teamspaces: keep your team's documents where the work happens

                                                                                                                              Release Note: This feature is available for all accounts across all DCs Hello Everyone, A Teamspace is built around a specific team and a shared objective, and it holds the modules and projects that team works with every day. The document that team depends
                                                                                                                            • Script to access a CBPX file from zoho crm

                                                                                                                              Hello everyone, I'm planning to write a script in Python or Java in Zoho CRM functions, to access a CBPX file. Is it possible to write this script in the dev console of Zoho? What are the best practices to do this ? Would you have references in the Zoho
                                                                                                                            • Calculate hours

                                                                                                                              Is there any chance that the the "formula" will have the ability to do calculation using the "time" field in the future? Our company has a form set up for tracking hours worked and we use 2 time fields currently. One for the clock-in time, and one for the clock-out time. It's great for keeping that record, but if there were a way to calculate the hours to show on the report would be awesome. Previously we had used JotForm and their calculator had that ability, but it seems that Zoho doesn't accept
                                                                                                                            • Introducing parent-child ticketing in Zoho Desk [Early access]

                                                                                                                              Hello Zoho Desk users! We have introduced the parent-child ticketing system to help customer service teams ensure efficient resolution of issues involving multiple, related tickets. You can now combine repetitive and interconnected tickets into parent-child
                                                                                                                            • Zoho Books | Product Updates | November 2026

                                                                                                                              Hello users, As the year winds down, we've introduced several enhancements to make compliance, inventory management, and everyday bookkeeping easier in Zoho Books. This month's updates include an improved TDS experience, a new way to exchange transactions
                                                                                                                            • Zoho Writer workflows now support custom stages, parallel reviews, and external approvers

                                                                                                                              Hello everyone, Zoho Writer now lets you build your own approval chains. The pre-built workflows also get new review modes, completion criteria, and external approver support. What’s new Custom workflows: Design review and approval processes from scratch,
                                                                                                                            • Expanding sales, marketing, and support capabilities in Zoho CRM Plus 3.0

                                                                                                                              Hey everyone, It's been more than 10 years since we launched Zoho CRM Plus back in 2014. This is quite a milestone, and we've come a long way in empowering you with everything you need to offer an exceptional customer experience. On that note, we expanded
                                                                                                                            • Erase function in Zoho PDF editor does not truly redact

                                                                                                                              Using the "erase" function in the Zoho PDF editor online does not redact the text underneath when opening the file in Adobe. When I used the erase function to whiteout the areas I didn't want to be seen, I opened the supposed redacted files in Adobe.
                                                                                                                            • Error creating an XML file

                                                                                                                              I am creating an xml as string in the function Employee.generatePartA_XML_String, and then I want to save it as a file to the field "Part_A_XML", but I get the response: {"code":3700,"message":"Unable to upload a file. Please check and try again."} How
                                                                                                                            • Thunderbird cannot authenticate Zoho on android

                                                                                                                              I keep getting a message from Thunderbird on Android that it could not authenticate for my account, dadashton@zoho.com., and to update my server settings. Now the settings are exactly the same for my other devices (1 Windows, 1 Mac and 2 Linux) Can anybody
                                                                                                                            • Next Page