Global Fields

Global fields are variables that store static information. They allow you to replace key values in various elements of Zoho Expense easily, facilitating system-wide changes and personalization.

Let’s say you’re using an email alert component in your extension to get the email address of the user installing the extension. To do this, you can create a global field with the data type as Users. Now, when a user installs the extension, the user’s email address will be fetched using the global field and will be displayed in the deluge script. So in this case, the global field is used to fetch a user’s email address at the time of the extension’s installation.

To create a global field:

  1. Go to the Build section at the top.
  2. Select Global Fields in the left sidebar.
  3. Click + New Field on the top right corner of the page.
  4. In the page that appears, enter the Name and Description for the global field.
  5. Select the data type for the global field in the dropdown next to the Data Type field.
  6. The data types supported are:
  • Text Box (Single Line)
  • Numbers
  • Users
  • Roles
  • Text Box (Multi-line)
  1. In the Visibility & Access field, you can configure the visibility and accessibility of the global fields. You can choose from the options below.
Type Description
Everyone The global field will be visible to everyone, and the value will be obtained from the installing user.
Read Only The global field will be visible to all users at the time of installation but can only be edited by the extension’s developer.
Hidden The global field will be hidden from all users and can only be accessed by the extension’s developer from the developer portal.
  1. Click Save.