Custom Schedulers

Custom Schedulers

Purpose

Custom Functions allows you to customize a lot of commonly used functions thereby helping you save time. Custom Scheduler is an add-on to the existing Custom Functions. Using the Custom Scheduler, you will be able to create a scheduler which will automatically perform the actions of a particular Custom Function, at the time specified by you. While custom functions will be triggered based on workflow actions, custom schedulers do not need any workflow actions for them to get triggered. 


Watch our Help Video on Custom Schedulers:


Configure Custom Scheduler

  1. From your home page, go to Settings (gear icon) > Employee Information > Automation > Scheduler > Custom Scheduler > Add Custom Scheduler.



  2. Click on Add Custom Scheduler.
  3. Give a Custom scheduler name and add a description if necessary.
  4. Give a Start date and time.
  5. Set Frequency.
  6. Under Time zone, select your desired time zone.
  7. In the Custom function editor, update the respective script.



  8. Click Save.
Notes
For Weekly scheduler, you will be able to select the day on which the schedule should run, by using the dropdown. For Monthly scheduler, you will have the option to select the date and for Yearly scheduler, you will be able to select the Month and Date on which the scheduler should run.

Example Scenario - Salary Processing

Consider a scenario where you need to update the Salary form based on the 27th of every month based on various other values like Mediclaim amount, other reimbursement amount etc. In this case, you can create a scheduler for this date, to take values from multiple forms to update your salary details form.
Follow the steps given below to do this.
Notes
You need to have the forms and fields used in the script available in your account for you to use this function.
  1. From your home page, go to Settings (gear icon) > Employee Information > Automation > Scheduler > Custom Scheduler > Add Custom Scheduler.
  2. Name the Scheduler "Reimbursement details". and add a description if necessary.
  3. Set the Start date and time as 27.
  4. Under Time, specify the desired time
  5. Under Frequency, select Monthly and under Dates, choose 27.
  6. In the Custom Function Editor, paste the script given below:

    Quote
    salarydetails = Map();
    salarydetails = zoho.people.getRecordById("Salary_reference",recordid);
    tabularmap = Map();
    tabularmap = salarydetails.get("tabularSections");
    tabularlist = List();
    tabularlist = tabularmap.get("Breakup details");
    salarymap = Map();
    Totalsalary = 0;
    for each r in tabularlist
    {
    salarymap = r.toMap();
    Totalsalary = salarymap.get("HRA1").toDecimal() + salarymap.get("Other_Allowance1").toDecimal() + salarymap.get("Medical1").toDecimal() + salarymap.get("Basic1").toDecimal();
    }
    salaryupdate = Map();
    salaryvalue = Map();
    salaryvalue.put("recordid",recordid);
    salaryvalue.put("Net_Salary",Totalsalary.toString());
    salaryvalue.put("Revised_date",today.toString());
    salaryupdate = zoho.people.update("Salary_reference",salaryvalue);
    info salaryupdate;
    This function will add salary details from salary reference form to the Monthly salary form.

    Quote
    getdata = List();
    getdata = zoho.people.getRecords("Salary_reference");
    addata = Map();
    addrecord = Map();
    This will iterate all the entries and update it to Salary details form on specifying current date.

    Quote
    for each r in getdata
    {
    mon_salary = r.get("Net_Salary");
    erecno = r.get("Employee_ID.ID");
    addata.put("Employee_ID",erecno);
    addata.put("Montly_Salary",mon_salary);
    addata.put("Date_1",today.toString());
    addrecord = zoho.people.create("Monthly_Salary_Details",addata);
    }
    putrecord = Map();
    updaterecord = Map();
    putrecord.put("recordid",recordid); putrecord.put("Sch_date",datevalue.toString());
    updaterecord = zoho.people.update("Schedular_form",putrecord);
    info updaterecord;

  7. Click Save.
Once this scheduler is created, a scheduler will be pushed on the 27th of every month to update the salary form based on details from other forms.


        Create. Review. Publish.

        Write, edit, collaborate on, and publish documents to different content management platforms.

        Get Started Now


          Access your files securely from anywhere

            Zoho CRM Training Programs

            Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

            Zoho CRM Training
              Redefine the way you work
              with Zoho Workplace

                Zoho DataPrep Personalized Demo

                If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

                Zoho CRM Training

                  Create, share, and deliver

                  beautiful slides from anywhere.

                  Get Started Now


                    Zoho Sign now offers specialized one-on-one training for both administrators and developers.

                    BOOK A SESSION







                                Quick LinksWorkflow AutomationData Collection
                                Web FormsEnterpriseOnline Data Collection Tool
                                Embeddable FormsBankingBegin Data Collection
                                Interactive FormsWorkplaceData Collection App
                                CRM FormsCustomer ServiceAccessible Forms
                                Digital FormsMarketingForms for Small Business
                                HTML FormsEducationForms for Enterprise
                                Contact FormsE-commerceForms for any business
                                Lead Generation FormsHealthcareForms for Startups
                                Wordpress FormsCustomer onboardingForms for Small Business
                                No Code FormsConstructionRSVP tool for holidays
                                Free FormsTravelFeatures for Order Forms
                                Prefill FormsNon-Profit

                                Intake FormsLegal
                                Mobile App
                                Form DesignerHR
                                Mobile Forms
                                Card FormsFoodOffline Forms
                                Assign FormsPhotographyMobile Forms Features
                                Translate FormsReal EstateKiosk in Mobile Forms
                                Electronic Forms
                                Drag & drop form builder

                                Notification Emails for FormsAlternativesSecurity & Compliance
                                Holiday FormsGoogle Forms alternative GDPR
                                Form to PDFJotform alternativeHIPAA Forms
                                Email FormsFormstack alternativeEncrypted Forms

                                Wufoo alternativeSecure Forms

                                TypeformWCAG

                                  Zoho FSM Video Tutorials


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

                                                  Create. Review. Publish.

                                                  Write, edit, collaborate on, and publish documents to different content management platforms.

                                                  Get Started Now




                                                                    You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                                                        Manage your brands on social media


                                                                          • Desk Community Learning Series


                                                                          • Digest


                                                                          • Functions


                                                                          • Meetups


                                                                          • Kbase


                                                                          • Resources


                                                                          • Glossary


                                                                          • Desk Marketplace


                                                                          • MVP Corner


                                                                          • Word of the Day


                                                                          • Ask the Experts


                                                                            Zoho Sheet Resources

                                                                             

                                                                                Zoho Forms Resources


                                                                                  Secure your business
                                                                                  communication with Zoho Mail


                                                                                  Mail on the move with
                                                                                  Zoho Mail mobile application

                                                                                    Stay on top of your schedule
                                                                                    at all times


                                                                                    Carry your calendar with you
                                                                                    Anytime, anywhere




                                                                                          Zoho Sign Resources

                                                                                            Sign, Paperless!

                                                                                            Sign and send business documents on the go!

                                                                                            Get Started Now




                                                                                                    Zoho TeamInbox Resources





                                                                                                              Zoho DataPrep Demo

                                                                                                              Get a personalized demo or POC

                                                                                                              REGISTER NOW


                                                                                                                Design. Discuss. Deliver.

                                                                                                                Create visually engaging stories with Zoho Show.

                                                                                                                Get Started Now








                                                                                                                                    • Related Articles

                                                                                                                                    • Automation Logs - Workflow, Custom Button & Scheduler Logs

                                                                                                                                      What are Automation logs in Zoho People? Automation logs in Zoho People record the execution details of all initiated workflows, custom buttons and schedulers including their statuses. These logs are organized by date within the settings page of ...
                                                                                                                                    • Email Schedulers

                                                                                                                                      Purpose Email scheduler is useful when you want to send reminders to your employees periodically. For example, if you would like your employees to submit their mobile bills for a claim on a particular date/day etc., you can create a scheduler. The ...
                                                                                                                                    • Custom Functions Automation - Zoho People

                                                                                                                                      What is a Custom Function? Custom functions in Zoho People help simplify complex, multi-step actions through program scripts that you can write and execute. Custom functions helps in workflow automation where procedural logic is required, which ...
                                                                                                                                    • JS SDK Library - Zoho People (Custom Widget and Web tab)

                                                                                                                                      The JS SDK library is a set of APIs which can be used in the widget and web tab to fetch form data from Zoho People without setting any authorization in the API request. For other Zoho People APIs, you must set up connections, refer to Invoke API via ...
                                                                                                                                    • Extensions

                                                                                                                                      What is meant by extensions in Zoho People? An extension is a software add-on that enhances the functionality of your service. You can build extensions using various languages, including HTML, JavaScript, and CSS. Sigma also offers functions for ...
                                                                                                                                      Wherever you are is as good as
                                                                                                                                      your workplace

                                                                                                                                        Resources

                                                                                                                                        Videos

                                                                                                                                        Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                                                        eBooks

                                                                                                                                        Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                                                        Webinars

                                                                                                                                        Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                                                        CRM Tips

                                                                                                                                        Make the most of Zoho CRM with these useful tips.



                                                                                                                                          Zoho Show Resources