[Zoho CRM] How to create a function for mass action button?

[Zoho CRM] How to create a function for mass action button?

In the function you are about to write, you can edit the Arguments. Let's say for example we're dealing with the Deals module, then what you want to do is add an argument mapping to the Deal ID field. I would suggest putting the mapping value as a plural (i.e: DealIDs) because we will be dealing with multiple records most of the time.
 
Now, what would happen when the button is clicked when multiple records are chosen is, it would return the IDs of the Deals record like this:
 
1243331222221004|||1243331222221005|||1243331222221006
 
This is a string value. We have to convert this string into a list and that's simple. Simply write this line:
This will change the string value to a list. And why do I do the conditional thing is because there is a possibility that only one record is chosen and in that case, there will be no "|||" in the returned value.
 
Then, simply do the "for each" thing, for example;

And it should work just fine. Hope this helps.

    • Related Articles

    • [Zoho CRM] Send Email Template Using Deluge in Zoho CRM

      How to send an email using an email template in a Deluge/Custom Function/Button? This function is used to send email using Zoho CRM email templates. We would have to get the template id by going to the respective template and edit it. In the URL of ...
    • [Zoho CRM] A Comprehensive Guide for Zoho CRM Wizards

      Unleashing the Power of Zoho CRM Wizards: A Comprehensive Guide What is CRM Wizards? Zoho CRM Wizards are a powerful tool designed to simplify and enhance the data entry process in Zoho CRM. They enable users to break down lengthy forms into a series ...
    • [Zoho CRM] Sending Twilio SMS Using Custom Function

      If you're using Twilio as your SMS provider in Zoho CRM, this is the way to automate SMS sending using Workflows and Custom Function. To do this, you have to be in the Enterprise edition or higher and you have to have permission from your ...
    • [Zoho CRM] Creating A Lead

      Leads in Zoho CRM can be created in several ways; Direct creation Import Social media connection (Facebook and Twitter) Zoho Mail integration Zoho Cliq (website ) integration To create directly, click on the '+' icon at the top right of the screen. ...
    • [Zoho CRM] Totalling from Related Records

      This function can be used to total a number from a related list. For example, you would like to calculate the revenue from the company based on the deals' amount. Notes: acctId = Accounts ID RelatedRecords = ...