Configure Extensions

The next step after you’ve built your extension is to configure them by installing actions.

Install Actions

Sometimes, you might want your extension to run a customized script immediately after the installation or before uninstalling the extension. For example, you might want to create sample data, or send an email notification about the installation to an external system, or kickoff a batch operation to populate a new field across a large set of data. This cannot be done with the help of custom functions or workflow rules. Instead you use Install Actions in the Zoho Expense Developer Portal to do this.

The Zoho Expense Developer Portal supports two different actions:

  • On Installation
  • On Uninstallation

On Installation

The installation script allows the extension to run a basic function whenever a user installs or updates the extension. To add an installation script to your extension:

  1. Go to the Configure section at the top of the page.
  2. Select Install Actions in the left sidebar.
  3. By default, the On Installation tab will open. Write the required code on the Deluge Script Editor.
  4. Click Save.

Notes:

  • You can write only one On Installation script per extension.
  • The On Installation script gets triggered automatically when the extension is installed or updated.
  • This script can be triggered only once.

On Uninstallation

The uninstallation script allows the extension to run a basic function when a user uninstalls the extension. To add an uninstallation script to your extension:

  1. Go to the Configure section at the top of the page.
  2. Select Install Actions on the left sidebar.
  3. Select the On Uninstallation tab at the top. Write the required code on the Deluge Script Editor.
  4. Click Save.

Notes:

  • You can write only one On Uninstallation script per extension.
  • The On Uninstallation script gets triggered automatically when the extension is uninstalled.
  • This script can be triggered only once.