Welcome back to another week of Kaizen!
This week, we will discuss yet another interesting enhancement to Queries.
As you all know, Queries allow you to dynamically retrieve data from CRM as well as third-party services directly within our CRM platform.
Remember how we discussed the use case of displaying the nearby post offices based on the shipping code? We used query variables and associated this query with the Decision component of Kiosk in Kaizen #166.
In Kaizen #169, we used serialization to fine-tune the same query to display only those post offices that delivered to a particular shipping code.
Falling in love with contextual data? This post will make sure you do!
Custom related lists have long been a powerful way to present relevant and contextual information right alongside the CRM records.
They allow you to display additional, context-specific information whether it’s from another module, a third-party service, or a custom integration.
We’re now taking that power to the next level. You can now create related lists that are powered by Queries, meaning they can dynamically fetch data from other modules, external services, or custom integrations, at runtime!
Let's see this in action, as always!
Imagine you’ve built a custom module called Orders to track all product shipments. Now, you'd like to display a list of nearby post offices that can deliver to the order’s Shipping Code, and you want this list to update automatically for each record.
You can create a query that pulls in post office data from an external API, with the Shipping Code passed as a variable at runtime.
Since we're using an external source, you must add this source to Trusted Domain and Sources. This enables the query to make the external API call and fetch the required details.
Trusted Domain
Add Source
The Query
Serializer and Query's Response
You can see that the query fetches all the post offices in that PIN code and the serializer displays only those with the delivery status 'Delivery'.
Let us use this query in a related list to display contextual data alongside the record itself.
Create a custom Related List
Each time you view an order, the related list will fetch real-time post office data using the shipping code for that specific record; no manual updates are needed.
We hope you liked this post. Let us know what you think in the comments or write to us at support@zohocrm.com.
If you have any interesting use cases of your own, please do share them with us and the community.
Cheers!