Create custom buttons for multiple records using form object
Hey Creators!
It's learning time!
Requirement
Perform actions for multiple records in a single button-click using a form object.
Sample Use-case
In an employee management app, the HR needs to send a mail on a button-click to all employees regarding a mandatory training session.
Logic
- From the respective report's (here, All Employee Info) quick view, create a button for multiple records.
When you choose for each record, the workflow is triggered for every record you select. However, when you choose a collection of records, the workflow is triggered only once for multiple records.
2. Add an action, choose Deluge Script, and click Create your own. Copy the code shown below.
- void Notifyemployee(Employee_Info Emp)
Here, Emp is the form object that holds a collection of records from the Employee info form.
We'll pass this form object as an argument to this function. To iterate each record before triggering a mail, let's drag and drop for each task and add a send mail task.
- {
- for each rec in Emp
- {
- sendmail
- [
- from :zoho.adminuserid
- to : rec.Employee_Email
- subject : "Yearly session on Cyber Security Awareness"
- message :("Hi <br>" + rec.Employee_Name) + "<br><br>You're invited to attend our yearly session on <b> Cyber Security Awareness </b> scheduled for <b> 15th December, 2024 </b>. <br>Join us in the Conference Hall as we dive into essential practices and strategies to protect both personal and organizational data in today’s digital world.<br><br>Thanks and Regards<br>HR Team"
- ]
- }
- }
rec.Employee_email dynamically sends the mail to all the employees stored in the Emp variable.
rec.Employee_Name fetches the respective employee names.
Save the function.
Choose the form object as the field name from the dropdown.
Now, save and click Done.
Click Create
The button is ready.
Output
Now, it's your turn to create buttons to execute actions for multiple records in a single click.
That's all for now.
Feel free to share your suggestions, queries, or thoughts in the comment box below.
Thank you!
Access your files securely from anywhere
Zoho Developer Community
Deliver unforgettable customer experiences
Deliver unforgettable customer experiences
New to Zoho Marketing Plus?
Everything you need to run your marketing
New to Zoho Marketing Plus?
Everything you need to run your marketing
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
Sticky Posts
Introducing Creator Simplified: An exclusive learning series to enhance your app development skills
Hey Creators! Welcome to Zoho Creator's new learning series, Creator Simplified. In this series, we'll dive into real-world business use cases and explore how to translate your requirements into solutions in your Creator application. You can also expect
ANZ In-Person Zoho User Group Meetups: Focusing on Zoho Creator & Zoho Flow (September 2024)
Hello, Zoho Community! Calling all Zoho users in Australia! We're thrilled to announce the next series of Zoho User Group (ZUG) Meetups, continuing the success of our previous sessions. These meetups are a great opportunity to learn, network, and engage
[SESSION ENDED] Ask the Experts #07| Live Q&A: Building workflows with Blueprint in Zoho Creator |
Hello, Post the release of Zoho Creator Blueprint last month, we're happy to tell you that we'll be launching a new 'Ask the Experts' session on 16th September (Thursday) this month focussing on creating blueprints in Zoho Creator. The session will be
Zoho Creator Community Webinars | October - November 2020 [Completed]
Hello everyone, I’m happy to announce that Zoho Creator is hosting a new Community Webinar Series starting this October. This series is a learning initiative aimed at our developer community, where every session will take spotlight use cases focused on
Community Learning Webinar - Zoho Creator Blueprint & other release updates | July 29, 2021
Dear developers, This June, the Creator team unveiled a slew of updates including UI enhancements to the Detail View of reports, an new capabilities in Data Import and Connections, and most important of all, the release of Blueprint in Creator. Customize
Zoho TeamInbox Resources
Zoho DataPrep Resources
Zoho CRM Plus Resources
Zoho Books Resources
Zoho Subscriptions Resources
Zoho Projects Resources
Zoho Sprints Resources
Qntrl Resources
Zoho Creator Resources
Zoho Campaigns Resources
Zoho CRM Resources
Zoho Show Resources
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.