Variables in Zoho Vertical Studio | Vertical Studio Help Guide

Org Settings - Variables

Variables in Zoho Vertical Studio acts as a container to store data, which can be reused across different parts of your vertical application. It helps in automating mundane processes, tailoring user experiences, and integrating with other applications. Check this Variables help page to learn more. 

Variables in Vertical Studio

Unlike Zoho CRM variables, the platform variables come with added benefits as they require higher customizability, integration capabilities, and developer control. It also helps in security management, versioning, and debugging to offer greater flexibility and reliability. 

Permission Categories 

You can set permissions on variable usage for the end users from the developer console. Following are the four permission categories:
  • Read/Write: A variable with this permission is visible in the subscriber's organization, allowing them to view and modify its value. However, any changes to the values of the variable in the developer console cannot be deployed as an upgrade and will not reflect in the subscriber’s organization. However, the changes will reflect on new sign-ups. Refer to this Components and Packaging document to learn more packaged behavior.

  • Read Only: A Read Only variable is visible but cannot be modified in the subscriber’s organization, and its value does not change upon upgrades from the developer console.

  • Hidden: The Hidden variable is visible in the Developer Console for developers to manage, but it remains hidden for the end users within the subscriber's organization. Any changes to the values of the variable in the developer console can not be upgraded to the subscriber's account. However, the changes will reflect on new sign-ups. Refer to this Components and Packaging document to learn more packaged behavior.

  • System: A System variable is visible in the Developer Console for developers to manage and remains hidden for the end users in the subscriber's organization. Changes made to the variable value in the developer console are reflected to the subscriber's account during upgrade. 

Notes
Note 
  1. In the subscriber's org, the value of variables can be updated via API for all the categories except for the System variable. 
  2. Hidden and System Variables cannot be used as merge fields in other components.

Read/Write and Read-Only variables can be associated as merge fields in the following components:

  • Tasks

  • Webtabs

  • Custom Buttons

  • Custom Links

  • Mail Merge Templates

  • Webhooks

  • Custom Funtions

  • Email Templates

  • Creating Record in Workflow Rules

On change Script

In the Developer Console, we support the use of a 'Change Script' to manage developer-created processes when a variable's value is updated in a Subscriber Organization. A change script is a Deluge function that uses both the old and new variable values as parameters. This allows developers to update the relevant processes with the new variable value effortlessly without any disruptions.  

To facilitate this, a pre-defined object variable called 'variableMap' is used within the 'Field Value - On Change' action. This object allows the developer to obtain the old and new values of a custom variable. To implement this, navigate to the Field Value-On Change tab in the desired variable and click on Write Script to create your change script.

Following is the syntax to retrieve the old and new values of a variable:

<oldvalue> = input.variableMap.get("oldvalue");

<newvalue> = input.variableMap.get("newvalue");

In the variableMap object mentioned above, the oldvalue key retrieves the value of the variable before it was changed. Whereas the newvalue key fetches the new value of the variable after the change.

Packaged Variables 

Packaged Variables are created in the developer console and deployed to subscriber organizations during signup or through upgrades. Any new Variable that is created in the developer console will be included in the next version of the application.

To know more about packaging, please refer to our guide on Components Packaging in Zoho Vertical Studio.

The following table explains the upgrade behavior of an existing packaged Variable already deployed in the subscriber's organization.

Property
Upgrade Type
Modify Access
Variable Name
Upgradable
Developer Only
API Name
Non-upgradable
Non-Editable
Description 
Upgradable
Developer Only
Data Type 
Non-upgradable
Non-Editable
Permission
Upgradable
Developer Only
Grouped Under
Non-upgradable
Non-Editable

Changes and Impacts  

When a packaged Variable is modified, published, and pushed as an upgrade to the subscribers' accounts, the impacts to the existing processes that are associated with the variable are explained below.

1. Adding a New Variable

Introducing a new variable will not impact any existing subscribers. The new variable can be utilized in future processes without disrupting existing customizations.

2. Editing a Variable

Changes to the 'Description' and 'Variable Name' properties will not affect anything. However, changes to a variable's 'Permission' property will directly impact its visibility and the level of access users have for modifying the variable. It depends on the permission category (Read/Write, Read Only, Hidden, System) outlined above.

When a variable's value changes, it can significantly affect any processes that rely on the original value. Developer-defined processes can be updated automatically using a change script. However, end users will need to manually update their functions with the new value to ensure everything continues to work precisely.

3. Deleting a Variable

When you delete a variable, it impacts all the existing processes that rely on it. Without the variable, these processes and their associated components will no longer function properly, as they will lose the essential values for their operation.
Warning
Caution! 

Deleting a Variable is a destructive change. It can have lasting effects on your subscriber data and configurations. Please consider the consequences carefully before proceeding, and only move forward if absolutely necessary.

      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

                                                                                                                            • Components and Packaging in Zoho Vertical Studio

                                                                                                                              Components are fundamental building blocks of Vertical Studio applications, comprising functionalities, configurations, and customizations. These components, such as fields, modules, blueprints, widgets, and templates, work together to create a ...
                                                                                                                            • Functions

                                                                                                                              Functions are custom scripts in Vertical Studio that help address complex business requirements in your application. They are written using Deluge (Data Enriched Language for the Universal Grid Environment). The Deluge scripts can be used for a wide ...
                                                                                                                            • Company Settings - An Overview

                                                                                                                              In Vertical Studio, you can define the default organization information for your application. The details specified in the developer console are applied as default settings for all new sign-ups. The settings allows you to: Define a fiscal year Set ...
                                                                                                                            • Subforms

                                                                                                                              Subforms help you to include additional data tables within a primary module record in your vertical application. They are used to manage and display multiple related data entries associated with a single record, providing a structured way to organize ...
                                                                                                                            • Managing List Views

                                                                                                                              A List View is grouping of records based on a defined set of criteria in your application. They are beneficial for displaying customer specific data according to your business requirements. Vertical Studio provides a set of pre-defined standard list ...
                                                                                                                              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