Record Deletion Alerts with User-Specified Reason to Owner and Super Admin

Record Deletion Alerts with User-Specified Reason to Owner and Super Admin

Requirement Overview

User should provide the reason before deleting the record in Zoho CRM.

Use-Case

When a record is deleted, the record owner and Zoho CRM super admin should be notified along with the reason, which was provided by the user while record deletion.

Current Challenges to achieve this directly

As of now, we do not have a direct option to make a field or note mandatory when delete button is clicked. As per the use-case, the reason should be provided before deleting the record. Hence, when a user clicks on delete button, a pop up should appear and ask the user to provide the reason for record deletion. Only after providing the reason, user should be able to proceed & delete the record.

Notes
The reason can be stored in the custom field or notes of the same record, because the end action is to send an email to the record owner and super admin with the provided reason.

Permissions & Availability

Info
-> Users with the Modules Customization permission can add field into module layout.
-> All the CRM users can use and manage Kiosk if either the permission to Manage Automation or Module Customization is enabled.
-> Users with the Manage Extensibility permission can create connections and write custom functions.
-> Users with the Manage Sandbox permission can manage the sandbox.

Solution

-> To achieve this requirement, we will use the Kiosk Studio feature to capture the user's reason during the record deletion process. The reason will then be sent to both the Super Admin and the record owner via email. Once the details are shared, the record deletion will proceed.

-> The Kiosk will be added as “Delete Button” in the record. So the user will use this Kiosk button instead of Default delete button. Hence, we will restrict the delete permission for the user.

Alert
Disable the delete permission for all custom profile except Administrator under Profile permission.

Configuration : Step-by-Step Implementation Guide

Step 1: Firstly, let us add a custom multiline field in the Module layout. So that we can store the reason in that field.

Navigate to Setup (⚙️) in Zoho CRM → Customization → Modules & Fields → select Module → Open Layout.


Info
In case, if you do not want your users to see the custom field, then you can mark it as hidden for all profiles.

Step 2: Create an Email template that needs to be sent when a record is deleted with the reason. Use the merge tag to add the reason in the template. i.e. Email Template Creation

Step 3: Now, we can proceed with Kiosk Configuration. i.e. Kiosk Studio Creation

Navigate to Setup (⚙️) in Zoho CRM >> Customization >> Kiosk studio >> Create Kiosk.

IdeaTo test your kiosks safely, please create them in the sandbox and then deploy them to the production environment.
1. In the left panel, select the current module based on your requirement.


2. A screen to the Kiosk and within the screen, add a multiline field and mark it as mandatory. Rename the multiline field as “Provide the Reason for deleting the record”. So the users will know what needs to be filled in the field.


3. Then, Add the "Field Update" action. Map the Kiosk Multiline field with the Custom multiline field in the Module layout.


4. Now, Add an Email Notification action and configure the Email template which was created earlier. Also select the recipient as “Record Owner” and “Super admin”.


5. Add a “Custom function action” to delete the record. Use the Zoho CRM - Delete API for deleting the record and use the necessary scopes in connection. Also, ensure to use a Connection which was created by the super admin user.


Notes
To know more about Zoho CRM - Delete API - Help Link
To know more about Connection in Zoho CRM - Help Link

Sample Custom Function script to delete a Record

  1. deleteRes = invokeurl
  2. [

  3. url :"https://www.zohoapis.com/crm/v7/Contacts/" + contact_ID + "?wf_trigger=true"

  4. type :DELETE

  5. connection:"ZOHOCRM"
  6. ];
  7. info deleteRes;

6. At last, add a screen and within that screen, add a text element. Rename the message as “Reason has been updated and deleted the Record successfully”.


Now you could perform a test run with a sample record before activating the Kiosk. Once everything is set up correctly, you could activate and configure it on the button. The button can be configured for both the 'Record Detail' page and the 'List - Each Record' view."

Use-Case Working Screencast




Alert
When you click Test Run, you are accessing the kiosk from within the Kiosk Studio. All actions will be executed as specified in Production.To test your kiosks safely, please create them in the sandbox and then deploy them to the Production environment.
Idea
Similarly, If you require a more customised Pop-up Window, then you could create a Widget in Zoho CRM which provides enhanced UI using CSS and configure actions using JavaScript. The created widget can be configure in a button within the Record Detail Page. You could refer to the Widget to know more about Widgets in Zoho CRM.


Quote
Custom Solution Created by Harish K | Zoho Partner Support

If you need any further clarifications, please don’t hesitate to contact partner-support@zohocorp.com.

NotesAdditionally, we kindly ask all Europe and UK Partners to reach out to partner-support@eu.zohocorp.com.

      Create. Review. Publish.

      Write, edit, collaborate on, and publish documents to different content management platforms.

      Get Started Now


        Access your files securely from anywhere

          Zoho CRM Training Programs

          Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

          Zoho CRM Training
            Redefine the way you work
            with Zoho Workplace

              Zoho DataPrep Personalized Demo

              If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

              Zoho CRM Training

                Create, share, and deliver

                beautiful slides from anywhere.

                Get Started Now


                  Zoho Sign now offers specialized one-on-one training for both administrators and developers.

                  BOOK A SESSION







                              Quick LinksWorkflow AutomationData Collection
                              Web FormsEnterpriseOnline Data Collection Tool
                              Embeddable FormsBankingBegin Data Collection
                              Interactive FormsWorkplaceData Collection App
                              CRM FormsCustomer ServiceAccessible Forms
                              Digital FormsMarketingForms for Small Business
                              HTML FormsEducationForms for Enterprise
                              Contact FormsE-commerceForms for any business
                              Lead Generation FormsHealthcareForms for Startups
                              Wordpress FormsCustomer onboardingForms for Small Business
                              No Code FormsConstructionRSVP tool for holidays
                              Free FormsTravelFeatures for Order Forms
                              Prefill FormsNon-Profit

                              Intake FormsLegal
                              Mobile App
                              Form DesignerHR
                              Mobile Forms
                              Card FormsFoodOffline Forms
                              Assign FormsPhotographyMobile Forms Features
                              Translate FormsReal EstateKiosk in Mobile Forms
                              Electronic Forms
                              Drag & drop form builder

                              Notification Emails for FormsAlternativesSecurity & Compliance
                              Holiday FormsGoogle Forms alternative GDPR
                              Form to PDFJotform alternativeHIPAA Forms
                              Email FormsFormstack alternativeEncrypted Forms

                              Wufoo alternativeSecure Forms

                              TypeformWCAG


                                          Create. Review. Publish.

                                          Write, edit, collaborate on, and publish documents to different content management platforms.

                                          Get Started Now




                                                            You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                                                Manage your brands on social media


                                                                  • Desk Community Learning Series


                                                                  • Digest


                                                                  • Functions


                                                                  • Meetups


                                                                  • Kbase


                                                                  • Resources


                                                                  • Glossary


                                                                  • Desk Marketplace


                                                                  • MVP Corner


                                                                  • Word of the Day


                                                                  • Ask the Experts


                                                                    Zoho Sheet Resources

                                                                     

                                                                        Zoho Forms Resources


                                                                          Secure your business
                                                                          communication with Zoho Mail


                                                                          Mail on the move with
                                                                          Zoho Mail mobile application

                                                                            Stay on top of your schedule
                                                                            at all times


                                                                            Carry your calendar with you
                                                                            Anytime, anywhere




                                                                                  Zoho Sign Resources

                                                                                    Sign, Paperless!

                                                                                    Sign and send business documents on the go!

                                                                                    Get Started Now




                                                                                            Zoho TeamInbox Resources





                                                                                                      Zoho DataPrep Demo

                                                                                                      Get a personalized demo or POC

                                                                                                      REGISTER NOW


                                                                                                        Design. Discuss. Deliver.

                                                                                                        Create visually engaging stories with Zoho Show.

                                                                                                        Get Started Now








                                                                                                                              Wherever you are is as good as
                                                                                                                              your workplace

                                                                                                                                Resources

                                                                                                                                Videos

                                                                                                                                Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                                                eBooks

                                                                                                                                Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                                                Webinars

                                                                                                                                Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                                                CRM Tips

                                                                                                                                Make the most of Zoho CRM with these useful tips.



                                                                                                                                  Zoho Show Resources