Skip to product menu
close
  • Recent Launches
    Press Space or Enter to display list of options
EXPLORE ALL PRODUCTS

Recent Launches

New

Payroll software with automated tax payments and filing.

Try now
New

Robotic process automation software to automate high-volume, rule-based tasks.

Try for free
New

Low-code IoT platform and solutions for connected businesses.

Try now
New

Business formation service to launch and grow your businesses.

Try now
New

Privacy-friendly application analytics solution.

Try for free

Sales

 
CRM

Comprehensive CRM platform for customer-facing teams.

CRM
 
Bigin

Simple CRM for small businesses moving from spreadsheets.

Bigin
 
Forms

Build online forms for every business need.

Forms
 
SalesIQ

Live chat app to engage and convert website visitors.

SalesIQ
 
Bookings

Appointment scheduling app for consultations with customers.

Bookings
 
Sign

Digital signature app for businesses.

Sign
 
RouteIQ

Comprehensive sales map visualization and optimal route planning solution.

RouteIQ
 
Thrive

Complete loyalty and affiliate management platform.

Thrive
 
Voice

Cloud Contact Center Software for businesses.

Voice
 
Suites
CRM Plus

Unified platform to deliver top-notch customer experience.

CRM Plus

Marketing

 
Social

All-in-one social media management software.

Social
 
Campaigns

Create, send, and track targeted email campaigns that drive sales.

Campaigns
 
Forms

Build online forms for every business need.

Forms
 
Survey

Design surveys to reach and interact with your audience.

Survey
 
Sites

Online website builder with extensive customisation options.

Sites
 
PageSense

Website conversion optimization and personalisation platform.

PageSense
 
Backstage

End-to-end event management software.

Backstage
 
Webinar

Webinar platform for webcasting online webinars.

Webinar
 
Marketing Automation

All-in-one marketing automation software.

Marketing Automation
 
LandingPage

Smart landing page builder to increase conversion rates

LandingPage
 
Publish

Manage all your local business listings on a single platform.

Publish
 
SalesIQ

Live chat app to engage and convert website visitors.

SalesIQ
 
Sign

Digital signature app for businesses.

Sign
 
Thrive

Complete loyalty and affiliate management platform.

Thrive
 
Voice

Cloud Contact Center Software for businesses.

Voice
 
NEW
LeadChain

Sync, manage, and convert leads across channels seamlessly.

LeadChain
 
NEW
CommunitySpaces

Online community platform for individuals and businesses to grow their network and brand.

CommunitySpaces
 
Suites
Marketing Plus

Unified marketing platform for marketing teams.

Marketing Plus

Commerce and POS

 
Commerce

eCommerce platform to manage and market your online store.

Commerce

Service

 
Desk

Helpdesk software to deliver great customer support.

Desk
 
Assist

Remote support and unattended remote access software.

Assist
 
Lens

Interactive remote assistance software with augmented reality.

Lens
 
FSM

End-to-end field service management platform for service businesses.

FSM
 
SalesIQ

Live chat app to engage and convert website visitors.

SalesIQ
 
Voice

Cloud Contact Center Software for businesses.

Voice
 
NEW
Solo

The all-in-one toolkit for solopreneurs.

Solo
 
Bookings

Appointment scheduling app for consultations with customers.

Bookings
 
Suites
Service Plus

Unified platform for customer service and support teams.

Service Plus

Finance

 
Books

Powerful accounting platform for growing businesses.

Books
 
FREE
Invoice

100% Free invoicing solution.

Invoice
 
Expense

Effortless expense reporting platform.

Expense
 
Inventory

Powerful stock management and inventory control software.

Inventory
 
Billing

End-to-end billing solution for your business.

Billing
 
Checkout

Collect payments online with custom branded pages.

Checkout
 
NEW
Payroll

Payroll software with automated tax payments and filing.

Payroll
 
NEW
Solo

The all-in-one toolkit for solopreneurs.

Solo
 
Practice

Practice management software for accounting firms.

Practice
 
Sign

Digital signature app for businesses.

Sign
 
Commerce

eCommerce platform to manage and market your online store.

Commerce
 
Suites
Finance Plus

All-in-one suite to manage your operations and finances.

Finance Plus

Email and Collaboration

 
Mail

Secure email service for teams of all sizes.

Mail
 
Meeting

Online meeting software for all your video conferencing & webinar needs.

Meeting
 
Writer

Word processor for focused writing and discussions.

Writer
 
Sheet

Spreadsheet software for collaborative teams.

Sheet
 
Show

Create, edit, and share slides with a sleek presentation app.

Show
 
Notebook

Beautiful home for all your notes.

Notebook
 
Cliq

Stay in touch with teams no matter where you are.

Cliq
 
Connect

Employee experience platform to communicate, engage, and build positive employee relations.

Connect
 
Bookings

Appointment scheduling app for consultations with customers.

Bookings
 
TeamInbox

Shared inboxes for teams.

TeamInbox
 
WorkDrive

Online file management for teams.

WorkDrive
 
Sign

Digital signature app for businesses.

Sign
 
Office Suite

Powerful collaborative work platform for teams.

Office Suite
 
Office Integrator

Built in document editors for web apps.

Office Integrator
 
ZeptoMail

Secure and reliable transactional email sending service.

ZeptoMail
 
Calendar

Online business calendar to manage events and schedule appointments.

Calendar
 
Learn

Knowledge and learning management platform.

Learn
 
Voice

Cloud Contact Center Software for businesses.

Voice
 
ToDo

Collaborative task management for individuals and teams.

ToDo
 
Tables

Work management tool to connect people, processes, and information.

Tables
 
FREE
PDF Editor

Collaborative online PDF editing tool.

PDF Editor
 
Suites
Workplace

Application suite built to improve team productivity and collaboration.

Workplace

Human Resources

 
People

Organize, automate, and simplify your HR processes.

People
 
Recruit

Intuitive recruiting platform built to provide hiring solutions.

Recruit
 
Expense

Effortless expense reporting platform.

Expense
 
Workerly

Manage temporary staffing with an employee scheduling solution.

Workerly
 
NEW
Payroll

Payroll software with automated tax payments and filing.

Payroll
 
Shifts

Employee scheduling and time tracking app.

Shifts
 
Sign

Digital signature app for businesses.

Sign
 
Suites
People Plus

Comprehensive HR platform for seamless employee experiences.

People Plus

Security and IT Management

 
Creator

Build custom apps to simplify business processes.

Creator
 
Directory

Workforce identity and access management solution for cloud businesses.

Directory
 
FREE
OneAuth

Secure multi-factor authenticator (MFA) for all your online accounts.

OneAuth
 
Vault

Online password manager for teams.

Vault
 
Catalyst

Pro-code platform to build and deploy your apps.

Catalyst
 
Toolkit

Complete resource for any admin-related lookup queries.

Toolkit
 
Lens

Interactive remote assistance software with augmented reality.

Lens
 
Assist

Remote support and unattended remote access software.

Assist
 
QEngine

Test automation software to build, manage, execute, and report testcases.

QEngine
 
NEW
RPA

Automate manual, tedious, and repetitive tasks easily.

RPA

BI and Analytics

 
Analytics

Modern self-service BI and analytics platform.

Analytics
 
Embedded BI

Embedded analytics and white label BI solutions, tailored for your needs.

Embedded BI
 
DataPrep

AI-powered data preparation service for your data-driven organization.

DataPrep
 
NEW
IoT

Harnessing IoT analytics for real-time operational intelligence.

IoT

Project Management

 
Projects

Manage, track, and collaborate on projects with teams.

Projects
 
Sprints

Planning and tracking tool for scrum teams.

Sprints
 
BugTracker

Automatic bug tracking software for managing bugs.

BugTracker
 
NEW
Solo

The all-in-one toolkit for solopreneurs.

Solo

Developer Platforms

 
Creator

Build custom apps to simplify business processes.

Creator
 
Flow

Automate business workflows by creating smart integrations.

Flow
 
Catalyst

Pro-code platform to build and deploy your apps.

Catalyst
 
Office Integrator

Built in document editors for web apps.

Office Integrator
 
ZeptoMail

Secure and reliable transactional email sending service.

ZeptoMail
 
QEngine

Test automation software to build, manage, execute, and report testcases.

QEngine
 
Tables

Work management tool to connect people, processes, and information.

Tables
 
NEW
RPA

Automate manual, tedious, and repetitive tasks easily.

RPA
 
NEW
Apptics

Application analytics for all apps.

Apptics
 
Embedded BI

Embedded analytics and white label BI solutions, tailored for your needs.

Embedded BI
 
NEW
IoT

Build, deploy, and scale IoT solutions for connected businesses.

IoT
 
DataPrep

AI-powered data preparation service for your data-driven organization.

DataPrep

IoT

 
NEW
IoT

Low-code IoT platform and solutions for connected businesses.

IoT

Search Result

 
CRM Plus

Unified platform to deliver top-notch customer experience.

Try now
CRM Plus
 
Service Plus

Unified platform for customer service and support teams.

Try now
Service Plus
 
Finance Plus

All-in-one suite to manage your operations and finances.

Try now
Finance Plus
 
People Plus

Comprehensive HR platform for seamless employee experiences.

Try now
People Plus
 
Workplace

Application suite built to improve team productivity and collaboration.

Try now
Workplace
 
Marketing Plus

Unified marketing platform for marketing teams.

Try now
Marketing Plus
 
All-in-one suite

Zoho One

The Operating System for Business

Run your entire business on Zoho with our unified cloud software, designed to help you break down silos between departments and increase organizational efficiency.

TRY ZOHO ONE
Zoho One
Zoho Marketplace

With over 2000 ready-to-use extensions across 40+ categories, connect your favorite business tools with the Zoho products you already use.

EXPLORE MARKETPLACE
Marketplace
Skip to main content

Install Actions

Sometimes, you might want your extension to run a customized script immediately after installation or upgradation. For example, you might want to create sample data, or send an email notification about the installation to the CRM users or to an external system, or kick off a batch operation to populate a new field across a large set of data. This cannot be achieved with the help of a custom function or workflow rules. To help you achieve this, Zoho Developer allows you to bundle a post install script along with your extension.

The post install scripts are small snippets of codes or commands that are to be executed immediately after the extension is installed or updated.

 Create a post install script

To add a post install script to your extension

  1. Log in to your Zoho Developer console and click Extensions for Zoho CRM.
  2. Select the extension you'd like to modify and click Edit.
  3. Select Install Actions in the left pane.
  4. Select Extension and click On Installation.
  5. In the Deluge Script Editor, write the required code.
  6. Click Save and Execute if you want to test your code or else simply click Save.

Note

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

 InstallParamMap Variable

The installParamMap variable can be used only with the post install script and is used to obtain the following data from Zoho CRM:

  • Organization ID - The unique Organization ID of the Zoho CRM account in which the extension is installed. The syntax to obtain the org ID is 
    <variable_name>= input.installParamMap.get("organizationId");
  • Installer ID - The unique ID of the user who installs the extension. The syntax to obtain the installer ID is
    <variable_name>= input.installParamMap.get("installerId");
  • IsInstall - This is used to check whethere the extension is installed for the first time or is an upgradation. The syntax for this task is
    <variable_name>= input.installParamMap.get("isInstall");
  • PreviousVersion - The value of the previous version of the extension in case of an update. The syntax to obtain the previous version number is
    <variable_name>= input.installParamMap.get("previousVersion");

 Example

Consider the following scenario, A user who installs your extension wishes to alert all the other users in the CRM system about the installation via an email. This can be achieved with the help of a simple post install script.

orgid = input.installParamMap.get("organizationId");
installerid = input.installParamMap.get("installerId");
isInstall = input.installParamMap.get("isInstall");
pversion = input.installParamMap.get("previousVersion");

sendmail
(
To       :  zoho.adminuserid
From     :  zoho.adminuserid
Subject  :  "Post Install script executed"
Message  :  "Installation details ---> OrgId = " + orgid + " : Installer Id = " + installerid + " : is Install = " + isInstall + " : previous version = " + pversion
)

This script when executed, sends an email to admin of the CRM system with the details of the extension and the user who installed the extension.
Similarly you can perform any action using the post installer script.

 Create a post uninstall script

To create a post-uninstall script

  1. Log in to your Zoho Developer console and click Extensions for Zoho CRM.
  2. Select the extension you'd like to modify and click Edit.
  3. Select Install Actions in the left pane.
  4. Select Extension and click On Uninstallation.
  5. In the Deluge Script Editor, write the required code.
  6. Click Save and Execute if you want to test your code or else simply click Save.
  7. Publish the extension again to make this change effective.

 Create an on authorization script for connectors

Occasionally, you might want to run a customized script immediately after a connector has been authorized. For example, you might want to register webhooks or create users. These objectives cannot be achieved with a custom function or workflow rules. To help you achieve this, Zoho Developer allows you to create an add-on script that will get executed post authorization of the connector.

The post authorization script is a snippet of code or command that is to be executed after authorization of the connector.

To include a post authorization script for a connector:

  1. Click Extensions for Zoho CRM in the Zoho Developer console homepage.
  2. Select the extension that the connector has been associated to.
  3. Click Install Actions in the left pane.
  4. Select Connectors and click On Authorization.
  5. Select the connector that you want to include the authorization script in.
  6. Write the required code in the Deluge Script Editor.
  7. Click Execute if you want to test your code, or simply click Save to Connector.

Note

  • You can only write one post authorization script per connector.
  • The post authorization script gets triggered automatically when the connector is authorized.
  • This script will be triggered every time the connector is authorized.

 Example

Consider a scenario where a user wants to register a webhook that will notify the CRM system when appointments are scheduled (created) in an external system. When this event of receiving a notification is not associated with any user action or input in the CRM system, it can be triggered by including a post authorization script for the connector. Thus, the webhook will be created when the extension that has the connector is used in the CRM system.  Similarly, you can perform any action using the post authorization script for connector.

getmap = { "nameSpace" : "<portal_name.extension_namespace>"};
apiresponse = zoho.crm.invokeConnector("crm.zapikey", getmap);
zapikey = apiresponse.get("response");
crm_signal_webhook_url = "https://platform.zoho.com/crm/v2/settings/custom_function/acuityschedulingext.createevent/execute?zapikey=" + zapikey;
scheduledMap = { "triggerEvent" : "appointment.scheduled", ("targetUrl") : crm_signal_webhook_url };
response = zoho.crm.invokeConnector("acuityschedulingext.acuityscheduler.regsiterwebhook", scheduledMap);
info response;
webhookid = response.get("id");
setResp = zoho.crm.invokeConnector("crm.set", { "apiname" : "acuityschedulingext.webhookid", "value" : webhookid });

For registering a Webhook, a deluge function needs to be defined that can be exposed as a REST API. Once this function (createevent) is defined and saved, the REST API URL will be generated. This URL  (https://platform.zoho.com/crm/v2/settings/custom_functions/acuityscheduling .createevent) is the Webhook URL that has to be provided to the third-party application. The code for the function is given below:

resp = input.requestMap;
appointmentId = resp.get("id");
getsingleappointmentMap = { "id" : appointmentId };
response = zoho.crm.invokeConnector(("acuityschedulingext.acuityscheduler.getsingleappointment"), getsingleappointmentMap);
responseMap = (response.get("response")).toMap();
fName = responseMap.get("firstName");
lName = responseMap.get("lastName");
mobile = responseMap.get("phone");
email = responseMap.get("email");
eventName = responseMap.get("type");
createContactMap = { "First_Name" : fName, "Last_Name" : lName, "Mobile" : mobile, "Email" : email };
m = map();
l = List();
l.add(createContactMap);
m.put("module", "Contacts");
m.put("data", l);
contactResp = zoho.crm.invokeConnector("crm.create", m);
info contactResp;
newContactResp = (contactResp.get("response")).toMap();
newDataMap = (newContactResp.get("data")).toMap();
contactId = newDataMap.get("id");
createEventMap = { "Event_Title" : eventName, "Who_Id" : contactId, "All_day" : false, "Start_DateTime" : ("2017-09-08T15:58:00+05:30"), "End_DateTime" : ("2017-09-08T15:58:00+06:30") };
mapp = map();
lapp = List();
lapp.add(createEventMap);
mapp.put("module", "Events");
mapp.put("data", lapp);
EventResp = zoho.crm.invokeConnector("crm.create", mapp);
info EventResp;

Note

For more details about registering webhooks, refer to the guide on Custom SalesSignal 

In the example mentioned above, after the webhook is successfully created, new record will be added in Contacts and Events module whenever a new appointment is created in the third-party application. The ID of the newly created webhook is set as an organization variable so that the value of the ID is available globally to be used at a later stage. To set the organization variable, follow the below steps:

  1. Click on Extension Settings in the left pane.
  2. Click Create.
  3. Enter the values as shown below:
  4. Click Save.

After the webhook is successfully created, the following response will be obtained:

 Create an on revoke script for connectors

After revoking the authorization of a connector, it might become necessary to nullify the workflow/action(s) associated with the connector. For example, you might want to disallow users from sending mail/SMS. These objectives cannot be achieved with the help of a custom function or workflow rules. To help you achieve this, Zoho Developer allows you to add a script (snippet of code or command) which will get executed during revocation of authorization of the connector.

To include a script post revocation of authorization of a connector:

  1. Click Extensions for Zoho CRM in the Zoho Developer console homepage.
  2. Select the extension that the connector has been associated to.
  3. Click Install Actions in the left pane.
  4. Select Connectors and click On Revoking.
  5. Select the connector you want to add the script to be executed in after revocation of the connector authorization.
  6. Write the required code in the Deluge Script Editor.
  7. Click Execute if you want to test your code, or simply click Save to Connector.

Note

  • You can only write one post connector revocation script per connector.
  • The post connector revocation script gets triggered automatically when the authorization of the connector is revoked.
  • This script will be triggered every time the connector authorization is revoked.

 Example

On revocation of the connector authorization, a registered webhook is deleted.

webhookid = zoho.crm.getOrgVariable("acuityschedulingext.webhookid");
m = { "id" : webhookid };
resp = zoho.crm.invokeConnector("acuityschedulingext.acuityscheduler.deletewebhook", m);
m = { "apiname" : "acuityscheduling.webhookid", "value" : 0 };
setOrgVar = zoho.crm.invokeConnector("crm.set", m);

 Execute a script on purchase

Using Install Actions - On Purchase, you can execute activities when the end user buys an extension. You can use the script to enable certain features in the extension, notify users of the upgrade, etc.

The below screenshot depicts an extension's direct purchase and a purchase after the trial period (which can be done by navigating to SetupMarketplace > AllInstalled and clicking on Buy Now).

To include an on-purchase script for an extension:

  1. Log in to your Zoho Developer console and click Extensions for Zoho CRM.
  2. Select the extension you'd like to modify and click Edit.
  3. Click Install Actions in the left pane.
  4. Select Extension and click On Purchase.
  5. In the Deluge Script Editor, write the required code.
  6. Click Save and Execute if you want to test your code, otherwise click Save.

Note

  • This feature will be available only for paid extensions.

 UpgradeMap Variable 

The upgradeMap variable will be available for the on-purchase script and can be used to obtain the following parameter values from Zoho CRM:

  • Organization ID - The unique Organization ID of the Zoho CRM account in which the extension is installed. The syntax to obtain the org ID is 
    <variable_name>= input.installParamMap.get("organizationId");
  • Installer ID - The unique ID of the user who installs the extension. The syntax to obtain the installer ID is
    <variable_name>= input.installParamMap.get("installerId");

 Example

Imagine you have a creator application to keep track of the number of upgrades and downgrades of your extension. You can post data to this application whenever an upgrade happens.

count = 0;
resp = getUrl("https://creator.zoho.com/api/json/sales-commissions/view/All_Commissions?authtoken=21XXXXe&scope=creatorapi&raw=true");
l = list();
l = resp.get("Commissions");
for each ele in l
{
uMap = ele.toMap();
Upgrade_count = uMap.get("Upgrade_Count");
Extension_Name = uMap.get("Extension_Name");
ID = uMap.get("ID");
if(Extension_Name == "acuityschext")
{
count = Upgrade_count + 1;
myMap = Map();
myMap.put("authtoken","21XXXXe");
myMap.put("scope","creatorapi");
myMap.put("Upgrade_Count",count);
myMap.put("criteria","Extension_Name=acuityschext");
resp = postUrl("https://creator.zoho.com/api/zoho_ownername/json/sales-commissions/form/Commissions/record/update",myMap);
info resp;
}
}

 Execute a script on plan downgrade

Using Install Actions - On Plan Downgrade, you can create and execute a script to carry out actions when an end user's extension pricing plan is downgraded.

Paid extension end users can be downgraded to the free version. This can happen in one of two ways:

  • The extension is automatically downgraded to the free version due to non-payment of charges by the end user.
  • The end user chooses to leave the paid plan of the extension. The end user does this by selecting Cancel subscription in the Extension Details page (SetupMarketplace > AllInstalled and select the desired extension) in their CRM application as referred to in the screenshot below.

When either scenario happens, you might want to carry out some actions. This can be as varied as disabling certain features in the extension, notifying users of the downgrade, sending a survey link to obtain feedback, or issuing a reminder to upgrade.

To include a plan downgrade script for an extension:

  1. Log in to your Zoho Developer console and click Extensions for Zoho CRM.
  2. Select the extension you'd like to modify and click Edit.
  3. Click Install Actions in the left pane.
  4. Select Extension and click On Plan Downgrade.
  5. In the Deluge Script Editor, write the required code.
  6. Click Save and Execute if you want to test your code, otherwise click Save.

Note

  • This feature will be available only for paid extensions.

 DowngradeMap Variable 

The downgradeMap variable will be available for plan downgrade scripts and can be used to obtain the following parameter values from Zoho CRM:

  • Organization ID - The unique Organization ID of the Zoho CRM account in which the extension is installed. The syntax to obtain the org ID is 
    <variable_name>= input.installParamMap.get("organizationId");
  • Installer ID - The unique ID of the user who installs the extension. The syntax to obtain the installer ID is
    <variable_name>= input.installParamMap.get("installerId");

 Example

A survey link can be sent to end users who downgrade their extension. The survey can be used to capture details of why the user chose to opt out of the paid version of the extension.

sendmail
[
from :zoho.adminuserid
to :zoho.loginuserid
subject :"Extension Survey"
message :"Hi, we would like to know the reason why you downgraded the extension to a free version. Please respond to the survey and help us improve.
https://survey.zohopublic.com/zs/g1B3gM"
]