Create custom buttons to download files

Create custom buttons to download files

Hey there!

This time, let's see how to create custom buttons to download the files uploaded in the file upload field.

Sample use-case

A training app has a module that provides the materials for all the available courses. Students can click on the corresponding button to download the required file.

Demo
  1. This report (All Course Materials) has a file upload field (Study Material). 



  2. Publish the report from the Operations module under the Manage section. Save the file path from the permalink generated.



  3. Create a custom button for a single record. 



  4. Add an action using the deluge script and create a new function. Copy the code given below. 

  1. openUrl("https://creatorapp.zohopublic.in/file" + zoho.appuri + "All_Course_Materials/" + input.ID + "/Study_Material/download/p5zQbOv7VkYtqsXd2uwBWHrzf5ZtyqfZ46N6FxP95ZR2EGHx7eJjv7YHkg4eMqSFdEqVWmVdhztSs7gRagBFAaddpkA5hJQRANkO?filepath=/" + input.Study_Material,"same window");


Here, the OpenURL () task redirects to a URL that allows you to download a file in the same window.

Let's break down the components of the URL.

creatorapp.zohopublic.in is the base URL to public components of Zoho Creator accounts in India. Change the domain as per your DC.

zoho.appuri populates the admin username and app link name in the URL.

All_Course_Materials is the report link name and input.ID dynamically fetches the ID of the record, and Study_Material is the field link name of the file upload field.

Paste the file path taken from the perma link, in this case it is p5zQbOv7VkYtqsXd2uwBWHrzf5ZtyqfZ46N6FxP95ZR2EGHx7eJjv7YHkg4eMqSFdEqVWmVdhztSs7gRagBFAaddpkA5hJQRANkO. 

  1. Finally, add the button to your report's quick view. 


Output



That's it! As easy as that!

Feel free to share your thoughts in the comment section below.

Thank you!

    Access your files securely from anywhere


            Zoho Developer Community





                                      • Desk Community Learning Series


                                      • Digest


                                      • Functions


                                      • Meetups


                                      • Kbase


                                      • Resources


                                      • Glossary


                                      • Desk Marketplace


                                      • MVP Corner


                                      • Word of the Day


                                      • Ask the Experts



                                          Zoho Marketing Automation


                                                  Manage your brands on social media



                                                        Zoho TeamInbox Resources

                                                          Zoho DataPrep Resources



                                                            Zoho CRM Plus Resources

                                                              Zoho Books Resources


                                                                Zoho Subscriptions 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 Writer

                                                                                    Get Started. Write Away!

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

                                                                                      Zoho CRM コンテンツ






                                                                                        Nederlandse Hulpbronnen


                                                                                            ご検討中の方





                                                                                                  • Recent Topics

                                                                                                  • The current Account Name is amt-lubricatingoil.com, and I would like to change it.

                                                                                                    Hello, my current Account Name is a***********l.com, and I would like to change it to w*******x.com. Thank you!
                                                                                                  • Is the a way to show the actual Zoho Books Invoice in Zoho Crm Deal ?

                                                                                                    Im currently using the following code to create deals and tasks based off a new quote in zoho books, the problem is the quote is created under Accounts in CRM in the Zoho FInance Module, so when the deal is created it does state the amount of the quote
                                                                                                  • How to auto-update a task owner in a preset list of tasks on a new project?

                                                                                                    We have automation set up between the CRM and Projects that will automatically create a new project with a preset list of tasks when a sales order is created for specific products. Of the tasks that are automatically populated in these new projects, we
                                                                                                  • Zoho Analytics - CRM Sync Failure

                                                                                                    We have experienced consistent sync failures between our Zoho CRM and Analytics apps, but there aren't any details provided as to why this failure might be occuring. Please advise on troubleshooting steps so we can figure out how to restore the sync.
                                                                                                  • Matrix dropdown

                                                                                                    Is there a way to create a matrix question with dropdown answers but 1 row correlates to 1 column? So really I want to combine 4 dropdown questions into 1 matrix but each question has a single, and different, dropdown for answers.
                                                                                                  • Client Script | Update - Introducing Subform Events and Actions

                                                                                                    Are you making the most of your subforms in Zoho CRM? Do you wish you could automate subform interactions and enhance user experience effortlessly? What if you had Client APIs and events specifically designed for subforms? We are thrilled to introduce
                                                                                                  • "Reply to" email address issue

                                                                                                    On the New campaign page, you select or add a reply to email address.  It sends a verification email to that email address. But my recipient had a filter on and never go tthe email.  Now he removed the filter, but campaigns says verification email already was sent.
                                                                                                  • [Client Script] How to get selected related record Id

                                                                                                    Hi Zoho, I set an client script button in related record list. We would like to fetch the selected record id/field for further action. But I don't know how to get the selected id. If there is not possible to get related record info, then what does the
                                                                                                  • Now Indian Businesses can start accepting online payments with Zoho and Razorpay

                                                                                                    Hello Everyone, At Zoho, we have always ensured a hassle-free online payment experience for our customers. Today, with our integration with Razorpay, Zoho's customers from India can now offer a seamless checkout experience for one-time and recurring payments, with a host of payment options including card payments, multiple wallet offerings, and net banking with over 50 banks. With Zoho and Razorpay, help your customers pay their way. Whether it's with debit cards, credit cards, wallets, or net banking,
                                                                                                  • Workflows being applied and the Large unwanted popup

                                                                                                    When a workflow is being applied do to an action, then the Agent is left with a large Window asking if they would like the see the changes this workflow did. Is there any way to disable this prompt from appearing?
                                                                                                  • Repeating Sections in Writer

                                                                                                    I am wondering if it's possible to create repeating sections or text boxes of a document based on a merged subform fields coming from Zoho Forms. We are currently using excel to dynamically create a legal PDF document based on input fields in another
                                                                                                  • Duplicate Column Data with Individual Filters

                                                                                                    Is it possible to create a report using the Zoho Desk Connector which would look something like this: | Account Name | Ticket Count (filtered by department 1) | Ticket Count (filtered by department 2) | For Example: Where Dept. 1 = Support Tickets, and
                                                                                                  • Introducing bot filtering for accurate analytics

                                                                                                    Dear Zoho Campaigns Users, We're happy to introduce bot filtering to enhance the accuracy of your email campaign analytics. This new feature is designed to help you filter out bot-generated opens and clicks, which will ensure your campaign reports reflect
                                                                                                  • Housing Leads and Existing Customers

                                                                                                    We are a Software as a Service (SaaS) company offering subscription-based services. Our customers include individuals, businesses, and resellers who market our software to their clients. Currently, we use Zoho CRM solely for leads/deals, but we would
                                                                                                  • Change default "Sort by"

                                                                                                    Is there a way to change the default "sort by" when searching across modules?" in Zoho CRM? Currently the default sort method is "Modified time" but i would like to utilize the second option of "relevance" as the sort by default and not have to change
                                                                                                  • Customer Success Pipeline

                                                                                                    Hello all, currently, we are using Leads -> Deals Pipelines to manage our Sales. So far so good. Now, we rely heavily on activating dormant clients and nurturing active clients into ambassadors, or cross- or upsell active clients. I can't wrap my head
                                                                                                  • Why hasn't Zoho CRM For Everyone been rolled out?

                                                                                                    I don't understand the point of rolling out new features so slowly after a big fanfare launch 8 months ago. I've signed up for 'early access' and also contacted my point of contact, but nothing. Not even an auto reply. Would you say that this is good
                                                                                                  • External E-Mail to approve Form

                                                                                                    I am currently setting up a form to apply for a member discount. To do this, the entry must be confirmed by the external partner of which the person completing the form is a member. Is it possible to enter an external email address as approval or is this
                                                                                                  • RSC Connectivity Linkedin Recruiter RPS

                                                                                                    It seems there's a bit of a push from Linkedin Talent Solutions to keep integrations moving. My Account Manager confirmed that Zoho Recruit is a Certified Linkedin Linkedin Partner but does not have RSC as of yet., (we knew that :-) She encouraged me
                                                                                                  • when I open my sheet ,it always start at "A1" despite I left it at "N234"

                                                                                                    when I open my sheet ,it always start at "A1" despite I left it at "N234"  Is it possible to make the sheet open where I left it? 
                                                                                                  • ZOHO Reports - Filter Logic?

                                                                                                    Hi, I need a way to apply filter logics such as ((1 AND 2) OR 3). All I can see as of now is a way to enter different AND filters in the respective filter column. But how can I add an OR filter? Any advice would be highly appreciated. Mark
                                                                                                  • Notebook for watch no longer in Play store.

                                                                                                    I had to reinstall Notebook on my Galaxy Watch 7. Alas: the app is no longer available in the Play store. What now?
                                                                                                  • Import template from Zoho Writer

                                                                                                    I am trying to import a mail merge template - tried to import direct from my .docx file on my hard drive and the formatting went all over the place. I then imported the .docx file in my Zoho Docs and then fixed up the formatting within Zoho Writer. Can
                                                                                                  • Which WhatsApp API works seamlessly with Zoho CRM?

                                                                                                    I’m exploring WhatsApp API solutions that integrate seamlessly with Zoho CRM for customer communication, lead nurturing, and automation. I would love to hear insights from those who have successfully implemented WhatsApp within Zoho CRM. My Requirements:
                                                                                                  • "Fail to update" error in Zoho Notebook

                                                                                                    I am getting a "fail to update" error repeatedly in Notebook when I try to update one of my existing notes with a screenshot.  Are there limitations on how large a note can be or what can be included in a file? 
                                                                                                  • Zeptomail 136.143.188.150 blocked by SpamCop

                                                                                                    Hi - it looks like this IP is being blocked, resulting in hard bounces unfortunately :( "Reason: uncategorized-bounceMessage: 5.7.1 Service unavailable; Client host [136.143.188.150] blocked using bl.spamcop.net; Blocked - see https://www.spamcop.net/bl.shtml?136.143.188.150
                                                                                                  • Multi-line address lines

                                                                                                    How can I enter and migrate the following 123 state street Suite 2 Into a contact address. For Salesforce imports, a CR between the information works. The ZOHO migration tool just ignores it. Plus, I can't seem to even enter it on the standard entry screen.
                                                                                                  • Weekly Tips: SecurePass For Extra Security

                                                                                                    Imagine sensitive data from your organisation sent via email is being accessed by unintended recipients. The sensitive data can range from Personal Identification Information to a tender quotation or a client’s NDA document. The unintended access could
                                                                                                  • Job Opening Fields - Rich Text

                                                                                                    I migrated to the new version (4?) of ZoHo Recruit.  I am trying to add a new field to my Job Openings layout and I want it to be a rich text field (just like the field I am typing in right now) so I can format the text, instead of just entering plain text.  I know the rich text field exists because one of my existing fields (Job Description) migrated over as a rich text field.  But I don't see rich text as a choice in the field type menu.  Or, I would like to change the field type on an existing
                                                                                                  • Cross-Posting to a Telegram Channel

                                                                                                    We don't have a native way to cross-post to Telegram channels. Did anyone find a way around it? I checked Zoho Flow - but Telegram isn't there. Maybe some 3rd party integrations connecting Facebook, IG, etc., bypassing SalesIQ altogether?
                                                                                                  • Deals sync for Campaigns or Marketing Automation...

                                                                                                    We are looking to create a marketing campaign based on a custom "expiration date" field inside our DEALS module. We are open to using either CAMPAIGNS or MARKETING AUTOMATION but haven't been able to get either platform to sync the specific fields we
                                                                                                  • Access of Activities Module in CRM to Client Portal?

                                                                                                    I want to enable access of Activities Module in Client Portal of my CRM to my Clients but not getting option to choose the module. By doing this I aim to give the access to the clients to their realtime status of the work going on and they can track the
                                                                                                  • User Filter for Dynamic Date Dimensions in Zoho Analytics

                                                                                                    One challenge I frequently encounter is the need to create multiple versions of the same report—one for yearly data, another for quarterly data, another for monthly, and so on. While this works, it leads to unnecessary duplication, making maintenance
                                                                                                  • WebDAV support

                                                                                                    I need WebDAV support so that I can upload/download (and modify) documents from my local file system. Is anything planned in his direction?
                                                                                                  • Is there a quick way to copy the contact details for a Zoho CRM contact?

                                                                                                    This has probably been asked lots of times before, but I couldn't find an answer anywhere - Is there a simple 'one-click' way to copy a contacts details from Zoho CRM, so that you can paste it into an email or word document? All I need is to grab 'business
                                                                                                  • Solution for setting up header and footer in a template

                                                                                                    Hi all, Emon need for business, I have long searched the forum and also how to put in my quote and my bills a header and a footer. And finally, I have an other working stream elements allowing me to meet my needs ... Given the number of people seeking the same thing as me, I say it might be good to share my discovery. It's simple and easy to implement First, start by adding the beginning of your HTML the following: <style> html {margin: 0;}  body {margin: 0;}  div # printhead { display: block;  position:
                                                                                                  • ZOHO Expense API Documentation - Can't see anything about Purchase Requests

                                                                                                    Hello, I am reading the API Documentation for Zoho Expense but can't see anything about Purchase Requests - This is one of the modules we use the most. Has anyone had any luck getting Purchase Requests data from Zoho Expense via API? Thanks,
                                                                                                  • KPI Widget - last month sales vs same period last year

                                                                                                    I would like a KPI Widget that might compare data with the following date ranges: This month to date (meaning all of February through the current date, for example the 14th, if today was the 14th. So Feb 1-14th 2018)vs. last year this month to date (Showing
                                                                                                  • Client Script event on any field of a Detail page

                                                                                                    Hi everyone! I'd like to trigger a Client Script when a user modifies a field - any field - from the Account Details page, how can I do this? I don't want to trigger it on a specific field, but on all of them. Thanks in advance!
                                                                                                  • Zeptomail Support

                                                                                                    My zeptomail was blocked and i was notified to contact support. I have opened five tickets and no one is responding to my queries. I went through possibilities of the block and discovered the issue was due to suspicious mails sent through one of the mailagents.
                                                                                                  • Next Page