Tips and Tricks #21: How to schedule tasks in Zoho Subscriptions using Custom Schedulers

Tips and Tricks #21: How to schedule tasks in Zoho Subscriptions using Custom Schedulers

Custom Schedulers is one of our newest features, which helps you save time by scheduling frequently performed tasks. In this week's post, we'll be taking a look at how you can set up custom schedulers to address niche use-cases for your subscription business.
Missed our previous post? Give it a read to learn how you can prevent contact duplication with existing leads from Zoho CRM.



1. Schedule crucial sales reports to stay informed about your business' health

Reports like Lost Opportunities, Churned Subscriptions and Under Risk provide actionable insights about your sales. They can help your sales team proactively follow up with customers on crucial events like errors while signing up, subscription payments that are overdue and subscriptions that have been cancelled. 

Accessing this information on time can be vital--that's where custom schedulers come in handy. With custom schedulers, you can schedule a summary of these reports to be sent directly to your email, which will allow you to make informed decisions about your business' sales.

Apart from the reports mentioned above, the custom scheduler that you're about to create will also include the number of trial subscriptions that are about to expire in the next seven days.

The script for this custom scheduler has already been written and works thanks to Zoho Subscriptions' powerful APIs. All you have to do is configure the scheduler with the script, which we've made available on Github. Here's how to set it up:
  • Go to Settings > Automation > Custom Schedulers.
  • Click + New Custom Scheduler.

  • Set the Frequency as Daily (or Weekly, based on your needs) and the Start Date as your current date.
  • Copy the script for the custom function from Github and paste it in the Deluge script editor.
  • Make sure to edit the script with your Auth Token as well as any other changes that you'd like. 
  • Click Save.
Now, the scheduler will automatically send a summary of these reports along with a link to the full report to your email address.



2. Schedule a subscription to get cancelled on a particular date

Zoho Subscriptions lets you cancel your customers' subscriptions immediately or at the end of the current cycle. However, there may be cases where you or your customers want a subscription to be cancelled on a particular date in the future. This custom function will let you handle such cases.

How It Works

To achieve this, we'll be using custom schedulers. First, you'd have to create a custom field that can store a custom cancellation date in your subscriptions. Next, a custom scheduler, which runs daily, will go through subscriptions that have custom cancellation dates. If the scheduler finds a custom cancellation date that matches the current date, it will cancel the subscription.

End result? You'll be able to cancel a subscription simply by updating it with a cancellation date and let the custom scheduler do the rest.

Setting It Up

There may be a lot of steps involved with this one, but the setup is fairly simple and shouldn't take you more than 5-10 minutes.

To start things off, create a custom field that can store a date in your subscriptions.
  • Go to Settings > Preferences > Invoice.
  • Navigate to the Custom Field tab and click + New Custom Field.

  • Enter the Label Name as "Custom Cancellation Date".
  • Select the Data Type as Date.
  • Ensure that you leave the Default Value field empty.
  • Click Save.
When you want to cancel a subscription at a future date, update the custom field. Here's how: 
  • Go to the Subscriptions module from the left sidebar and select the subscription that you want to cancel.
  • Click the More dropdown and select the Update Custom Fields option.

  • Set the subscription's cancellation date in the custom field that you created earlier. 
  • Click Save
You can also customize the columns in the default subscription list view to make it easier to view cancellation dates. In the Subscriptions module, click the Column Customization icon and mark the custom field for cancellation dates. Click Save to show the cancellation date in the default subscription list view.



Our custom scheduler will also need a Custom View, which will help it sort through subscriptions with cancellation dates. To create the custom view: 
  • Go to the Subscriptions module and click the View Filters dropdown. 
  • Click + New Custom View

  • Enter a Name for the custom view. 
  • Add a criterion with the Field as your cancellation date's custom field, the Comparator as is and the Value as This Month.

  • Click Save.

Now, it's time to wrap things up and finally create our custom scheduler. 
  • Go to Settings > Automation > Custom Schedulers.
  • Click + New Custom Scheduler.

  • Set the Frequency as Daily and the Start Date as your current date.
  • Copy the script for the custom function from Github and paste it in the Deluge script editor.
  • Edit the script to suit your needs and also make sure to copy and paste the previously created script's customview_id parameter. 

(You can find the customview_id parameter by going to your custom view and copying it from your browser's URL bar.) 
  • Click Save.
You're all set! Now, the scheduler will automatically cancel subscriptions whenever it finds a subscription that has a cancellation date in the custom field that you created.

Note: Zoho Subscriptions will not charge your customer for their pro-rated usage. So, if you want to charge your customer for their usage until the cancellation date, you can do it by adding an additional charge to their subscription before it gets cancelled.

We hope you try this out and let us know how it goes in the comments below. We're always open to suggestions, so let us know if you have a specific business scenario that you'd like to see us tackle in our weekly tips and tricks. Until next time!

Cheers,
Varun Steven
The Zoho Subscriptions Team

    Access your files securely from anywhere

        Zoho Developer Community




                                  Zoho Desk Resources

                                  • Desk Community Learning Series


                                  • Digest


                                  • Functions


                                  • Meetups


                                  • Kbase


                                  • Resources


                                  • Glossary


                                  • Desk Marketplace


                                  • MVP Corner


                                  • Word of the Day



                                      Zoho Marketing Automation
                                              • Sticky Posts

                                              • Tip #4 : Refer and Earn Workflow system for your Subscription Business

                                                Hello everyone, We've been coming up with a tip every week to address specific business scenarios which can be implemented for your business. In continuation to the previous post, this week we will be seeing about how you can implement the Refer and Earn Workflow system to acquire more customers. Why are Referrals important? Customer Acquisition is crucial for any business to sustain itself in a constantly evolving market. It involves persuading new consumers to purchase your products. Customers
                                              • Tip #2 - Cancellation of Offline Subscriptions based on the Expected Payment Date

                                                Hello everyone, As you all know, we are coming up with a custom function workflow every week to address specific business scenarios. In continuation of this previous blog, this week we will be seeing about Cancellation of Offline Subscriptions based on the Expected Payment Date. Business Scenario: In general, for any business, the customers make payments via online as well as offline. In case of subscription where the automatic collection of charge is enabled (aka online subscription), the customer's
                                              • Tip #3 : Send SMS Reminders for your Subscription Business

                                                Hello everyone, As you all know, we are coming up with a tip every week to address specific business scenarios. In continuation to the previous blog, this week we will be seeing how you can use SMS reminders for your Subscription Business. Using SMS messages for your Subscription Business: While managing your subscription business, more often than not, you need to keep your customers informed about upcoming renewals, payment reminders and cancellations. By keeping them informed in advance, you can
                                              • Tips And Tricks - Announcement

                                                Hello everyone, Every business is unique and each of them follows a specific workflow. While managing your customers' subscriptions with Zoho, you might have some needs unique to your business. Custom Functions helps you address such needs. This is a start to a series of posts, where we will be coming up with a custom function workflow every week that addresses specific business scenarios. Watch this space for further updates! Also, if you have any specific business scenario which needs to be addressed,
                                              • Tip #6 : Accessing external URLs from Zoho Subscriptions

                                                Hello everyone, We have been sharing a tip every week to address specific business scenarios which you can implement for your subscription business. Last week, we shared a tip about implementing the Approval Workflow system. This week, let's look at how you can access external URLs with the help of Custom Link. Business Scenario: Every business functions differently and has its unique requirements. At times, businesses might want to access other websites or applications by appending specific information


                                              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 Campaigns 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