Extension pointers - Simple yet significant pointers #13: On change of field value for CRM variables
CRM variables provide global access to a variable across an entire extension. They also help in the storage of user-specific data provided by the user at the time of installation, which can later be fetched to perform data functionalities.
Additionally, the Zoho CRM Developer platform lets you perform logicaI functions whenever the value of a CRM variable changes. If you want to perform a function when the value of your CRM variable changes, you can use the CRM variable's field value on change script to achieve your desired functionality.
How to perform a function on field value change of CRM variable
- Choose Custom Properties from the left panel of the Zoho Developer console, under Build. Click Write Script associated and available next to your CRM variable.
- Write the code logic in the custom function Deluge script editor and click Save. You can fetch the old and new value of CRM variable and perform the functionality using that in the function.
➤ The syntax for getting the old value of the custom variable is:
<oldvalue> = input.variableMap.get("oldvalue");
|
➤ The syntax for getting the new value of the custom variable is:
<newvalue> = input.variableMap.get("newvalue");
|
- When the extension is published and installed in the Zoho CRM account, whenever the value of the CRM variable changes, the script of field value change is triggered and its functionality occurs.
SEE ALSO
Sticky Posts
Client Script | Update - Introducing Commands in Client Script!
Have you ever wished you could trigger Client Script from contexts other than just the supported pages and events? Have you ever wanted to leverage the advantage of Client Script at your finger tip? Discover the power of Client Script - Commands! Commands
Extension Pointers - JS SDK series #4: Managing data from a widget using ZOHO.CRM.HTTP
Handling and managing the data between two applications is a major factor for an efficient business. There are a variety of ways to handle data between Zoho CRM and other third-party applications. You can use deluge CRM tasks, create connectors, use API
Kaizen #152 - Client Script Support for the new Canvas Record Forms
Hello everyone! Have you ever wanted to trigger actions on click of a canvas button, icon, or text mandatory forms in Create/Edit and Clone Pages? Have you ever wanted to control how elements behave on the new Canvas Record Forms? This can be achieved
Extension pointers for integrating Zoho CRM with Zoho products #8: Upload and manage Zoho Workdrive folders and files from within Zoho CRM
Keeping records on your customers and business prospects is essential for tracking data, conducting follow-ups, and running a business smoothly. When you use two separate applications, and store relevant data in each, checking and tracking data becomes
Kaizen #142: How to Navigate to Another Page in Zoho CRM using Client Script
Hello everyone! Welcome back to another exciting Kaizen post. In this post, let us see how you can you navigate to different Pages using Client Script. In this Kaizen post, Need to Navigate to different Pages Client Script ZDKs related to navigation A.