Create Internal Widget or Web tab Packages Using Zet-CLI Tool - Zoho People

Create Internal Widget or Web tab Packages Using Zet-CLI Tool - Zoho People

The Zoho Extension Toolkit (ZET) is a command-line interface designed to assist developers in creating application packages for Widgets or Web tab for integration with Zoho People.

Prerequisites 

  • Use the following command to verify the installation:

Quote
node -v
npm -v

Install CLI

  1. Run the following command to install the zapps cli node package
Quote
npm install -g zoho-extension-toolkit

      2. Run the following command to ensure that the installation is successful:
Quote
zet
Help information about 'zet' command will be shown. 

Create a project

      1. Run the following command to specify your project directory:
Quote
cd {directory} 
           Eg: cd desktop

      2. Run the following command to create a new project:
Quote
zet init 
           The list of Zoho Services for which the project template can be created will appear. 

       3. Select Zoho People from the list, and provide the Project Name.    
           A sample project with the basic necessary files and folder structure will appear on the specified directory.



Info
A default plugin-manifest file is generated as part of the project template directory. This file is crucial, as it's where the JSON parameters of your extension must be configured before hosting. It contains metadata about the extension, such as widget or web tab details, locations, and connectors. For more information about plugin-manifest file, Click here.

Develop a project

  1. Navigate to the project folder you have created. You can find the HTML file in the app folder, named "widget.html" by default.
  2. The widget.html file contains the structure, design and components of the widget or web tab. You can create your widget or web tab from the HTML file.
  3. You can enhance the widget or web tab by adding additional designs and functionality through the creation of necessary java script files and stylesheets. (optional)
    Idea
    You can combine multiple HTML files into a single Widget or Web Tab package and use them in supported interfaces of Zoho People. To make this work, you need to correctly set the location identifiers in the plugin-manifest.json file.
  4.  To use the Zoho People APIs in the widget or web tab, you can utilize the JS SDK API helpers provided in the JS SDK Library.
  5. Configure plugin-manifest.json file, refer to the following topic.

Configure plugin-manifest.json file

  1. Once you have developed your Widget or Web tab from your project folder, open the plugin-manifest.json file with your text editor and specify your widget or Web tab location identifiers. 
  2.  Add the domains that are to be whitelisted.
    Info
    Internal Widgets or Web tabs are restricted to access within Zoho People servers, with all other URLs being blocked by default. To grant widgets or web tabs permission to retrieve data from designated sources, whitelist specific URLs.
  3. Save plugin-manifest.json file.
Widget Location Identifiers

Widget Position in Zoho People
Location Identifiers
Dashboard
people.dashboard
Custom Button
people.custombutton
Related List
people.form.relatedlist

Web tab Location Identifiers

Web Tab Position in Zoho People
Location Identifiers
Home
people.home
Service 
people.service
            


Plugin-manifest.json File Setup for  Multiple HTML File Support in a Single ZIP File

  1. {
  2.   "locale": [
  3.     "en"
  4.   ],
  5.   "service": "PEOPLE",
  6.   "whiteListedDomains": [],
  7.   "modules": {
  8.     "widgets": [
  9.       {
  10.         "location": "people.home",
  11.         "name": "Zoho People Extension",
  12.         "url": "/app/widget.html",
  13.         "logo": ""
  14.       },
  15.       {
  16.         "location": "people.dashboard",
  17.         "name": "Zoho People Extension",
  18.         "url": "/app/time.html",
  19.         "logo": ""
  20.       },
  21.       {
  22.         "location": "people.custombutton",
  23.         "name": "Zoho People Extension",
  24.         "url": "/app/leave.html",
  25.         "logo": ""
  26.       }
  27.     ]
  28.   },
  29.   "config": [],
  30.   "connectors": [],
  31.   "cspDomains": {
  32.     "connect-src": []
  33.   }
  34. }

Test Widget or Web tab

  1. Navigate to the project directory using the following command:
Quote
cd {project directory}
  1. Run the following command to start a local HTTP server that allows you to run your widget or Web tab locally to test it in your sandbox instance:
Quote
zet run
      


      3. This command starts a local server and runs the extension locally.
            Your extension will run on the port 5000. Ensure it is available before you execute this command.
      4. To verify the server, enable developer mode while testing your extension.


Validate and pack

  1. Navigate to the project directory using the following command:
Quote
cd {project directory}
  1. Run the following command to validate your application:
Quote
zet validate
This will validate your app package and identify any violations, which should be corrected before updating the zip file in the developer console.



      3. Run the following command to generate a zip of your widget or web tab which can be uploaded in Zoho People.
Quote
zet pack


     
A zip file of the widget or web tab will be created in the "dist" folder of your project directory. Use this file to upload into your Zoho People application.
Info
Once you have created an internal widget or web tab zip file, you can upload them in Zoho People and use them as widgets or Web tab in applicable interfaces.
To upload widget, refer to Using Widgets in Zoho People.
To upload a web tab, refer to Using Web tab in Zoho People.

Points to remember

  1. The widget or web tab ZIP folder contains the widget.html file inside the App folder by default. This is the index file, which will be incorporated as the widget in your page.
  2. If you've created another folder inside the App folder and moved the widget.html file inside the new folder, then you need to specify the index file name in the following format when adding widgets to your Zoho People account.
Quote
/<folder-name>/<filename>.html
  1. The widget ZIP folder must be packed only using the zet pack command to be considered a valid ZIP file. Uploading the widget file using other commands will result in failure.
Quote
zet pack

      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 FormsRetailOnline Data Collection Tool
                              Embeddable FormsBankingBegin Data Collection
                              Interactive FormsWorkplaceData Collection App
                              CRM FormsCustomer ServiceForms for Solopreneurs
                              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
                              Forms for Government
                              Intake FormsLegal
                              Mobile App
                              Form DesignerHR
                              Mobile Forms
                              Card FormsFoodOffline Forms
                              Assign FormsPhotographyMobile Forms Features
                              Translate FormsReal EstateKiosk in Mobile Forms
                              Electronic FormsInsurance
                              Drag & drop form builder

                              Notification Emails for FormsAlternativesSecurity & Compliance
                              Holiday FormsGoogle Forms alternative GDPR
                              Form to PDFJotform alternativeHIPAA Forms
                              Email FormsWufoo alternativeEncrypted Forms
                              Accessible FormsTypeform alternativeSecure Forms

                              WCAG

                                          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

                                                                  Use cases

                                                                  Make the most of Zoho Desk with the use cases.

                                                                   
                                                                    

                                                                  eBooks

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

                                                                   
                                                                    

                                                                  Videos

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

                                                                   
                                                                    

                                                                  Webinar

                                                                  Sign up for our webinars and learn the Zoho Desk basics, from customization to automation and more

                                                                   
                                                                    
                                                                  • Desk Community Learning Series


                                                                  • Meetups


                                                                  • Ask the Experts


                                                                  • Kbase


                                                                  • Resources


                                                                  • Glossary


                                                                  • Desk Marketplace


                                                                  • MVP Corner



                                                                    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

                                                                                                                            • Web Tab in Zoho People

                                                                                                                              What is Web Tab in Zoho People? Web Tab in Zoho People allows loading external websites or custom web pages/web apps created using Zoho CLI and JS SDK. It works similarly to the Custom Widgets feature in Zoho People. Where can Web Tabs be deployed in ...
                                                                                                                            • 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 ...
                                                                                                                            • Create Widgets in Zoho People

                                                                                                                              Upload your widget in Zoho People To upload your custom widget in Zoho People, do the following steps: 1. Click Settings > View all > Developer Space > Widgets. 2. Click Create New Widget. 3. Enter the name and description of your widget. 4. Select ...
                                                                                                                            • Zoho People 5.0 - What has changed?

                                                                                                                              Changes in Home tab and Self Service Zoho People 4.0 Zoho People 5.0 Landing page is Home > Dashboard Self Service page: New Landing page is Home > My Space > Overview (Replacement for Self service in Zoho People 4.0 with additional features). ...
                                                                                                                            • Zoho People 5.0 Administrator Guide

                                                                                                                              What is Zoho People 5.0? Zoho People is a comprehensive cloud-based HR software that aims to streamline HR processes, enhance employee engagement, and improve workforce productivity. With this refreshing new version, Zoho People further aims to ...
                                                                                                                              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