Real-Time Stock Visibility

Real-Time Stock Visibility


Hello everyone!

Welcome to another exciting Kaizen post!
In this edition, we'll explore how to use Queries in SlyteUI to build a real-time stock visibility component that fetches product stock information from a third-party system, displays it in a Custom Table, and launches from a custom button on the Orders Create Page.
In day-to-day CRM operations, users often need quick access to inventory information while creating orders. When stock data resides in an external system, users may have to switch between applications to verify product availability. With Queries in SlyteUI, you can fetch, display, and filter data from third-party systems directly within the Zoho CRM interface, enabling users to stay in context and work more efficiently.

In this kaizen post,


1. Using Queries in SlyteUI
2. Contextual and event based Queries
3. Use Case
4. Implementation
5. Summary
6. Related Links



1. Using Queries in SlyteUI

Queries in SlyteUI enable seamless data interaction by fetching information from Zoho CRM and external APIs and binding it to UI components. They provide a structured way to retrieve data, execute logic, and drive dynamic behavior in real time. With SlyteUI Queries, you can fetch CRM data in real time, connect and use external APIs and REST services within components. Using SlyteUI you can trigger queries based on events (Event Based Queries) or re-run the query automatically when the value of a referenced variable changes(Contextual Queries). Click here to know more about Queries in SlyteUI. 

2. Contextual and event based Queries



3. Use Case



4. Implementation

To implement this solution, you need to create a SlyteUI component that defines the required layout, query, and functionality. Once the component is ready, it should be properly configured and published for use within Zoho CRM. After publishing, the component must be linked to a custom button placed on the Create Page of the Orders module. This enables users to access and execute the SlyteUI component while creating orders.


I. Creating SlyteUI Component

- Navigate to Setup → Developer Hub → SlyteUI.
- Click New Component.
- Enter a name for the component and click Save. The SlyteUI IDE opens.

1. Container Layout Setup with component placement

- Drag and drop the Container layout onto the artboard. Configure the layout by setting the Layout Type to Flex, enabling Divisions, and selecting the appropriate Direction values. Split the container into two horizontal sections, then divide the top section into two columns, as shown below.



- Add the following components to the artboard as shown in the gif.
      - Custom Table component
      - Text Box
      - Button



- Click the button component and change the Button name to "Search" on the right pane.
- Click the text box component and remove the label of the Text Box using the Properties pane on the right. Note the name of the textbox. Here it is lyteInput3 and lyteInput3.ltPropValue will hold the value entered in the text box

2. Custom Table Configuration:

- Select the “Custom Table” component and configure the headers by specifying each column label along with its corresponding field name to be populated. For the table content, use {{stock.result}}, where stock is the name of the query (to be created)and result is the returned data set. This configuration should be done in the properties section of the right pane.


3. Query creation

- First create a Source inside Queries.
- To do this, go to Setup--> Developer Hub--> Queries--> Sources and click "Create Source". Enter the source name and Base URL.



- This source will now be available inside the "Queries" tab of SlyteUI. Click here to know more about Sources in Queries
- Now get back to SlyteUI, navigate to Queries on the left pane, click Add New Query.
- Specify Query name. Select the source as "Products ERP". 
- Enter the name of the query as "stock ".


- Here, {{lyteInput3.ltPropValue}} represents the value entered in the lyteInput box.

4. Contextual Query setup

- If you want the query to run every time this input value changes, make sure the query type is set to Contextual. By default, every new query you create is set to the Contextual type. You can see this in the "Advanced" tab as shown below.


-In the Advanced tab the following options are also available.

- Trigger on Load : Enable this to automatically execute the query when the page or component loads.
- Debounce Delay : Adds a short wait time between rapid trigger events to prevent repeated or unnecessary query executions.
- Switch to Run mode and observe how the table displays filtered results as you type in the text box. Here is how the SlyteUI component will work.



- As you type characters in the text box, the table automatically shows records whose product names contain those characters.

5. Event -Based Query setup

- Now, let's say you want the filtered records to appear only after the button is clicked.
- To do this, first change the query type to Event.II. Add a custom button named “Stock Details” on the Create Page of Orders Module.
- Navigate to Setup → Customization → Modules and Fields.
- Select the Orders module, open the Buttons tab, and click Create New Button.
- Enter the button name, add the SlyteUI component name, and configure the required details as illustrated below.



- Next, click the Search button and select Actions in the right pane. Add a new event with the following details and click Done.


- Now switch to Run mode.




- You can see that the table displays search results only after the button is clicked, rather than every time you type in the text box.
- Click Save as Draft to save your changes.
- Click Publish to make the component available for use in Zoho CRM pages.


Notes
Note: 

Only published components can be linked to Zoho CRM pages.


II. Add a custom button named “Stock Details” on the Create Page of Orders Module.

- Navigate to Setup → Customization → Modules and Fields.
- Select the Orders module, open the Buttons tab, and click Create New Button.
- Enter the button name, add the SlyteUI component name, and configure the required details as illustrated below.




Here is how the final implementation works.




5. Summary

In this post, we have discussed the answers for the following.

- Create queries in SlyteUI
- Bind query results to a Custom Table
- Configure Contextual and Event-Based Queries
- Trigger queries through user actions
- Publish and embed SlyteUI components in Zoho CRM



    Access your files securely from anywhere

          Zoho FSM Video Tutorials


                All-in-one knowledge management and training platform for your employees and customers.






                                      Zoho Developer Community




                                                            • Desk Community Learning Series


                                                            • Digest


                                                            • Functions


                                                            • Meetups


                                                            • Kbase


                                                            • Resources


                                                            • Glossary


                                                            • Desk Marketplace


                                                            • MVP Corner


                                                            • Word of the Day


                                                            • Ask the Experts



                                                                      • Sticky Posts

                                                                      • Announcing the new SKILL.md for Zoho CRM and the updated OAS repository!

                                                                        We are introducing a new zoho-crm skill to make working with Zoho CRM Developer tools (like APIs, functions, widgets, client scripts, queries etc) easier and faster, with the help of AI in your preferred AI harness like Claude Code, Codex, Cursor, VSCode
                                                                      • Kaizen #261 : Using Zoho CRM Skill to generate complex COQL queries

                                                                        Hello everyone, In the previous Kaizen posts, we introduced the zoho-crm SKILL.md and discussed how it can help you when you are working with Zoho CRM APIs and Client Script. In this Kaizen, we will focus on using the Zoho CRM `SKILL.md` with GitHub Copilot
                                                                      • Kaizen #256 - Build an Arrival Readiness Web Tab in Zoho CRM

                                                                        Hi everyone! Welcome back to the Kaizen series! In the post, we discuss a use case in hospitality industry: how an Arrival Readiness web tab widget can be used to let reception staff identify and resolve issues before arrival of guests. Use case In the
                                                                      • Kaizen #198: Using Client Script for Custom Validation in Blueprint

                                                                        Nearing 200th Kaizen Post – 1 More to the Big Two-Oh-Oh! Do you have any questions, suggestions, or topics you would like us to cover in future posts? Your insights and suggestions help us shape future content and make this series better for everyone.
                                                                      • Kaizen #226: Using ZRC in Client Script

                                                                        Hello everyone! Welcome to another week of Kaizen. In today's post, lets see what is ZRC (Zoho Request Client) and how we can use ZRC methods in Client Script to get inputs from a Salesperson and update the Lead status with a single button click. In this


                                                                      Manage your brands on social media



                                                                            Zoho TeamInbox Resources



                                                                                Zoho CRM Plus Resources

                                                                                  Zoho Books Resources


                                                                                    Zoho Billing Resources

                                                                                      Zoho Projects Resources


                                                                                        Zoho Sprints Resources


                                                                                          Qntrl Resources


                                                                                            Zoho Creator Resources



                                                                                                Zoho CRM Resources

                                                                                                • CRM Community Learning Series

                                                                                                  CRM Community Learning Series


                                                                                                • Kaizen

                                                                                                  Kaizen

                                                                                                • 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


                                                                                                      Zoho Show Resources

                                                                                                        Zoho Writer

                                                                                                        Get Started. Write Away!

                                                                                                        Writer is a powerful online word processor, designed for collaborative work.

                                                                                                          Zoho CRM コンテンツ


                                                                                                            Nederlandse Hulpbronnen


                                                                                                                ご検討中の方





                                                                                                                          • Recent Topics

                                                                                                                          • Generate a Zoho Sign link

                                                                                                                            From time to time I get a response "I never received your you e-document for electronic signature" is there a way to generate a Zoho Sign link to share.
                                                                                                                          • E-invoicing setup not completed in Zoho Books

                                                                                                                            My status on the EmaraTax portal appears as linked with Zoho. However, when I try to complete the setup on the E-invoicing tab in Zoho Books settings, I receive an error saying: "E-Invoicing could not be enabled as the FTA portal is currently unreachable.
                                                                                                                          • Notes - Reaction Buttons

                                                                                                                            Using the native notes option within CRM is fine, it works and the RTF features are great, however, would it be possible - if there isnt already something in place, where we can add a reactions button, similar to teams/whatsapp to show that its been read
                                                                                                                          • Generate a link for Zoho Sign we can copy and use in a separate email

                                                                                                                            Please consider adding functionality that would all a user to copy a reminder link so that we can include it in a personalized email instead of sending a Zoho reminder. Or, allow us to customize the reminder email. Use Case: We have clients we need to
                                                                                                                          • Need help with importing expenses

                                                                                                                            I'm using the template downloaded from the application. When I try to import my expenses, I get the message: Duplicate entry in the Expense Date column. Ensure it contains unique values. None of the rows will import. There are duplicate dates, but they
                                                                                                                          • #12 Bringing In A Second Pair Of Hands

                                                                                                                            Meera's studio became a two-person business in month five. Adding the second person took ten minutes. Working out why Meera herself was showing up as Staff took considerably longer. The Usual Way To Do This Covered in our published General FAQ, with the
                                                                                                                          • How can I add a Custom Field (or Customer_name) to a picklist?

                                                                                                                            Our workflow is Shopify-->SO -->Picklist-->Package-->Shipment. We would like to have the Picklist template to include a custom field "Customer_Notes" (we have created this field already). This way we get alerted when a customer has notes on their account.
                                                                                                                          • Header Line in Quote product rows

                                                                                                                            I believe this is an essential feature that Zoho should provide us, when adding products we want the ability to add titles for our product, in quotes: The Solution/Category Title Product1 Product2..... and then it would show the sub-total of that title 
                                                                                                                          • How to Fix the Corrupted Outlook 2019 .pst file on Windows safely?

                                                                                                                            There are multiple reasons to get corrupted PST files (due to a power failure, system crash, or forced shutdown) and several other reasons. If You are using this ScanePST.EXE Microsoft inbuilt recovery tool, it only supports the minor corruption issue
                                                                                                                          • 👍 Zoho CRM's Notes now gets Reactions and a new look

                                                                                                                            Moderation update: Currently available in the following DC's CA, AU, CN, UAE, JP, SA - All Editions EU - Free, Standard and Professional Hello everyone, Notes help users capture important updates, collaborate with teammates, and maintain context for records.
                                                                                                                          • Add @Mention Notifications in Zoho Cliq for Zoho Project Mentions

                                                                                                                            Hello Zoho Projects Team, We hope you are doing well. We would like to submit a feature request regarding "Projects Bot" Cliq bot notifications for @mentions inside Zoho Projects comments (Tasks and Issues). Current Behavior: At the moment, when someone
                                                                                                                          • Can't connect to POP and SMTP over VPN

                                                                                                                            I use Thunderbird to access Zoho Mail via POP and SMTP. I have configured an app-specific password for Thunderbird to use. Everything is properly configured and works correctly — until I enable my VPN. I'm using a paid commercial VPN service (Mullvad).
                                                                                                                          • Outgoing Mail Blocked – Suspicious Login Activity (Need Clarification and Solution)

                                                                                                                            Hello, I’m currently facing an issue where my Zoho Mail account has been blocked due to “suspicious login activity,” and outgoing emails are restricted. Here are the details shown: Block type: Outgoing mail blocked Reason: Suspicious login activity A
                                                                                                                          • Online Payment Fees

                                                                                                                            We don't take many online credit card payments so the merchant service provider (PayPal) charges us the 2.9% fee for processing the amount. I would like the ability for the fee to be automatically added to the total amount for "ease of payment". We'd
                                                                                                                          • O SalesIQ aceita números do Whatsapp Business com coextistência?

                                                                                                                            Tenho uma equipe com vários vendedores e cada um deles tem um celular corporativo usando o Whatsapp Business para se comunicar com os clientes. Estamos no plano Zoho One e esses mesmos vendedores também usam o SalesIQ para atender os leads que vem do
                                                                                                                          • Losing description after merging tickets

                                                                                                                            Hello, We merge tickets when they are about the same topic from the same client. It happens sometimes. We recently noticed that after the merger only the description from the master ticket is left in a thread. And the slave-ticket description is erased.
                                                                                                                          • Any update on much requested feature, to delete attachments without deleting the e-mail body?

                                                                                                                            People have been requesting the ability to delete e-mail attachments without deleting the e-mail for more than ten years now. The latest I see is marked "Working On It" and a year ago it was supposedly being added, see here: https://help.zoho.com/portal/en/community/topic/is-there-a-way-to-delete-mail-attachments-without-deleting-the-text
                                                                                                                          • Undo/redo when composing Mail

                                                                                                                            Where is the undo/redo button when composing mail? I've new to Zoho, I've looked, I've searched and can't find it. What am I missing?
                                                                                                                          • Mail menu bar items missing in Inbox and folders

                                                                                                                            Last night some shortcuts such as Move to Folder, Archive, Delete, Mark as spam, and others, disappeared from my Mail menu bar, along with items in the vertical three dots extension such as Mark as read, Flag as, Mark as unread, etc. What I now have instead
                                                                                                                          • ERROR CODE :554 - Your access to this mail system has been rejected due to poor reputation of a domain used in message transfer

                                                                                                                            This message was created automatically by mail delivery software. A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. *****, ERROR CODE :554 - Your access to this mail system has been rejected due
                                                                                                                          • Sent items with shared folders

                                                                                                                            Hello, this is in some way in between a problem and an idea.  When sharing folders (which is actually not any close to a shared mailbox...) the person which the folder has been shared with can access that folder and can send emails when delegation is
                                                                                                                          • What's New in Zoho Inventory | July & August 2026

                                                                                                                            Hello users, The July and August 2026 releases bring a range of new features and improvements across the product. From the Nigeria Edition and Super Admin enhancements to Sri Lanka IRD-compliant invoicing, Loyalty Program Management, and improvements
                                                                                                                          • E-mail com problema

                                                                                                                            Não estou recebendo e-mail desde Janeiro. Algo desconfigurou e eu não consigo resolver. Podem ajudar? Aguardo. Wagner Della Aversana Whats 55 11 985119899
                                                                                                                          • Account Blocked due to Suspicious Activity.

                                                                                                                            Hello, Trying to get access to my account, I have found this message above in the subject of this message. I am unable to log back to my account (see err. mess. below.) and thus cannot get rif of this following the Zoho procedure : I followed the step
                                                                                                                          • SAML authentication in Zoho Mail: Simplify and secure your organization's login management

                                                                                                                            Managing login credentials across multiple web applications can be challenging for organizations with a large number of users. Without a centralized authentication system, users are required to maintain separate passwords for each application, increasing
                                                                                                                          • How to prepare a balance sheet for a company that has no operations yet?

                                                                                                                            .
                                                                                                                          • Can't create new account in zoho email

                                                                                                                            Hello, i'm trying to create some free accounts to my customers... and since yesterday i can't create a new account, what is wrong? why i can't create free account? Thank You
                                                                                                                          • Name autocomplete

                                                                                                                            Hi, During searching emails the web tool does not always propose the auto-completion of the saved emails. As a result I either have to go to contacts and look up the exact email, or the exact full name including the middle name and any dots, which is
                                                                                                                          • Introducing Incentives for Zoho CRM: Build, automate, and track sales commissions

                                                                                                                            Dear Customers, We are here with an amazing news! We built a direct solution to help manage your commission provisioning activity in your business. From creating commission plans to issuing payouts, this application leverages your sales reps’ performance
                                                                                                                          • Bank Feeds - Again

                                                                                                                            Bank feeds broken again for me. I don't see other recent posts on this, so maybe it's just us? Tried: refresh update cred/ deact./react. feeds chat support Nothing. On day 2 without zoho as a result, which is crippling for us. We've used zoho for a year
                                                                                                                          • Create a single record from multiple images with ICR

                                                                                                                            Hello all, Zia's Intelligent Character Recognition can now create a single record from multiple images based on the configured ICR rule. Users can upload up to three images at once, such as an ID, a passport, and a business card, and Zia will extract
                                                                                                                          • SPF failure in android app

                                                                                                                            I have no domain. I am not admin of anything. All I want to do is send an email from a zohomail.eu address, using the Zoho android app, with all settings as default. I do not use Office 365, or EOP, or Outlook, and I have no domain or domain registrar.
                                                                                                                          • Zoho Books | Product updates | August 2026

                                                                                                                            Hello users, July has been an exciting month for Zoho Books! This month, we're excited to introduce HTML PDF Templates, Placeholders as Pills, expanded approval workflows for Sales Returns and Journals, and significant compliance updates across the India,
                                                                                                                          • Page Not Found error - 404 error

                                                                                                                            Hello, I am a first time user of zoho sites.I just published my website dentistinminneapolis.com but its giving me a 404 error.Please look into it ASAP and help with the problem.
                                                                                                                          • What's New in Zoho POS - September 2026

                                                                                                                            Hello everyone, Welcome to Zoho POS’s monthly update, where we share our latest feature updates, enhancements, events, and more. Let’s take a look at how September went. Global Edition of Zoho POS for Retail is here On September 28, 2026, we launched
                                                                                                                          • Push error with Zoho Books and Zoho CRM

                                                                                                                            I have successfully linked Books and CRM but I have some push errors with the following message: "The customer associated to this record is not linked to module chosen in the current contact sync configuration." I am unable to work this out, could you help please.
                                                                                                                          • crm to books

                                                                                                                            We currently sync CRM Contacts to Zoho Books Customers using two-way sync. We now wish to change to "Accounts & their Contacts". What happens to existing Books customers? Will they be merged with CRM Accounts, duplicated, left unchanged, or recreated?
                                                                                                                          • Announcing new features in Trident for Windows (v.1.43.5.0)

                                                                                                                            Hello Community! This release includes a collection of enhancements and feature updates aimed at making your email and collaboration experience smoother. Let’s dive into what’s new! Zoho Desk email notifications as Smart Mail. Zoho Desk Smart Mail is
                                                                                                                          • How to Manage Two GST Numbers / Two Companies in a Single Zoho Inventory Organization?

                                                                                                                            Hi Team, We currently have two separate legal entities: A Proprietorship Firm with its own GSTIN A Private Limited Company with a different GSTIN However, operationally, both companies deal with the same products, and we would like to manage the physical
                                                                                                                          • How To Implement an Auto-Check-out Feature for Attendance?

                                                                                                                            If an employee forgets to check out, the system should automatically check out the employee at 6:30 PM
                                                                                                                          • Next Page