Client Script Commands

Client Script Commands

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!

IdeaCommands : a new dimension of Client Script that enables users to trigger them anytime and anywhere in CRM, extending their event-driven functionality beyond just specific modules and pages. The user can either use customized keyboard shortcuts or command palette to execute Client Script. Users can quickly execute Client Script from anywhere within CRM, triggering complex actions with simple keystrokes, enhancing productivity and user experience.

Here is how you need to create a Command Client Script.



Create a command by specifying the Category as Commands (instead of module) while creating a Client Script.

You can trigger a Command in two ways,



Here is how you can add Keyboard Shortcuts for Commands.



Here is how you can trigger Client Script using the Command palette.




Notes
Note:

Every user can assign their preferred shortcut key to trigger a Command.             

Let's explore some real-life scenarios where Client Script Commands would be beneficial.

Scenario 1:



Here are the tasks of Sales Advisors optimized using Client Script Commands.

# 1 Access Utilities Anywhere in CRM!

To open the EMI calculator widget in any page of Zoho CRM, the Sales Advisor simply clicks the command palette icon in the footer and selects "EMI Calculator".

Here is how the Client Script Command works.




Notes
Note

The EMI Calculator in this scenario is built using Widgets and rendered as a flyout.

# 2 Context-Aware Commands - Triggers tailored to every page!

To locate the nearest branch, the Sales Advisor uses a keyboard shortcut to open the command palette and selects "Nearest branch finder" or a shortcut code ( N B H ). When he performs this action on the detail page of contacts, it shows the nearest branch in a popup by picking the customer pin code from the contact Detail Page. Based on his selection, the current Contact Detail Page will navigate to the Create Page of the Loans Module, automatically populating the Nearest Branch, Contact Name, and Email fields with information from the Contact's record.




Notes
Note

The Nearest Branch Finder is built using Widgets, rendered as a popup and navigates to Create Page of another module using navigateTo() method

# 3 Stay within the CRM - Access all the data you need right from your CRM!

Scenario 2 :




# 3.1 Get the exact details you need in a snap!

When the salesperson uses the keyboard shortcut O T, theClient Script fetches the order details from a third party application and shows a popup with the order details in CRM.

Here is how the Client Script Command works.



# 3.2 Simply Select & Command: Text-Powered actions at your fingertips!

If the user selects the Order ID and uses the shortcut key (O T), the Client Script automatically runs and retrieves the order details without requiring the salesperson to input the order ID manually.The variable $Client.selectedValue captures the content selected by the user on the current page. It passes the selected Order ID to the Client Script, which then uses this stored value to fetch the corresponding Order Details.




Notes
Note

GetInput() is used to retrieve the Order ID. The Order Tracker is built using Widgets and rendered as a popup.

We hope you find this incredibly beneficial!

Warning
PS: This feature is not supported on mobile devices. It is live across all DCs except the IN DC.



POCs : @Shaik Soheb , @Ashika Suresh 

    Access your files securely from anywhere

        Zoho Developer Community







                                  Zoho Desk Resources

                                  • Desk Community Learning Series


                                  • Digest


                                  • Functions


                                  • Meetups


                                  • Kbase


                                  • Resources


                                  • Glossary


                                  • Desk Marketplace


                                  • MVP Corner


                                  • Word of the Day



                                      Zoho Marketing Automation


                                              Manage your brands on social media



                                                    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

                                                                          • CRM Community Learning Series

                                                                            CRM Community Learning Series


                                                                          • Tips

                                                                            Tips

                                                                          • Functions

                                                                            Functions

                                                                          • Meetups

                                                                            Meetups

                                                                          • Kbase

                                                                            Kbase

                                                                          • Resources

                                                                            Resources

                                                                          • Digest

                                                                            Digest

                                                                          • CRM Marketplace

                                                                            CRM Marketplace

                                                                          • MVP Corner

                                                                            MVP Corner





                                                                              Design. Discuss. Deliver.

                                                                              Create visually engaging stories with Zoho Show.

                                                                              Get Started Now