Client Script | Update - Introducing ZRC: Simplified HTTP request library

Client Script | Update - Introducing ZRC: Simplified HTTP request library

Hello Developers!

Are you tired of juggling different methods to make API calls? Are you confused with multiple syntaxes and version restrictions? Have you ever wished for one simple way to make all API calls in CRM?

We heard you :)

Here comes ZRC (Zoho Request Client), the new way of making any API call in Client Script with one simple syntax!

Quote

What is ZRC?

ZRC (Zoho Request Client) is a built-in SDK that simplifies making API calls in Client Script. It uses one simple and consistent syntax to handle,

- CRM APIs

- Connection requests

- Public APIs .


There is no setup or configuration needed, making API calls hassle free.

          ZRC is now available for use in Client Script, helping you build faster with less effort.

Why use ZRC ?

APIs serve as the backbone for customizing Zoho CRM, powering vital tasks like updating records, adding leads, and integrating with external services. For developers, working with these APIs has not always been simple. Each type of API, whether internal CRM APIs, Connection APIs, or external APIs, requires different methods and boilerplate codes, which creates friction and slows down building solutions. Here comes ZRC to address this by handling authentication, supporting all CRM API versions, and managing requests and responses automatically, so developers can focus on building meaningful solutions.


Here is why ZRC is a
game changer for scripting in Zoho CRM:

Supports Any CRM API Version

With ZRC, you can use any version of the CRM APIs, even the latest ones like v7 and v8.

Self domain calls

For CRM API calls, ZRC requires only the API endpoint without specifying the domain. This enables usage across different domains and simplifies API calls.

Unified Syntax for All Calls

Whether it is a CRM API, a custom Connection, or an external public API, all calls follow the same simple syntax.


No Authentication Needed for Same CRM Org

You do not have to worry about tokens or domain configurations. Just pass the endpoint, ZRC takes care of authentication behind the scenes.


Smart JSON Handling

ZRC automatically handles JSON responses. There is no need to manually stringify or parse response objects.


Async/Await & Clean Code

Write clean, modern code with full support for async/await and promise chains using `.then().catch().`


Let us see how to use ZRC to make API calls for different scenarios.


Use Cases


1. CRM API Use Case - Automate Call Notes and create Task with one click

At Zylker, a custom button “Log Call Attempt” should prompt the user to enter call details, save them as a Note on the Lead, update the Lead_Status to “Contacted”, and create a follow-up task for the next day, streamlining the process and reducing errors.

7.4 M



Click here to view source code


2. Connection based Use Case - Export Subform Data to Zoho Sheet via API


At Zylker Finance, users maintain multiple loan options under each lead using a subform in Zoho CRM. The Admin requires the ability to export these subform rows to Zoho Sheet via API. This export should allow structured data transfer for further analysis, comparison, and reporting, all without manual copying or downloading.

2.57 MB

Click here to view source code.


3. Public API - Instantly retrieve real-time gold prices and perform currency conversions directly within the CRM interface


At Zylker, a gold jewelry company using Zoho CRM, the Admin needs the ability to instantly retrieve real time gold prices and perform currency conversions directly within the CRM interface without switching to external tools or websites.

5.4 MB


Click here to view source code.

Notes

Note :

- Now, all your API calls are made using one SDK, one format, and with full browser capabilities.

- No need to worry about authentication, domains, or response formats.

- Available now in Client Script. ZRC support in Mobile App will be available soon.

- Coming soon to Widgets

- Function Invoke APIs also follow the same fundamentals as ZRC.


From fetching CRM data to integrating with third-party tools, you can now achieve powerful customizations in Zoho CRM.

This feature is live across all DCs.

Go ahead. Try ZRC in your next Client Script, and feel the difference. Let us know your comments and feedback!

The help documentation of ZRC is available here.


Happy Coding!



    • Sticky Posts

    • Kaizen #217 - Actions APIs : Tasks

      Welcome to another week of Kaizen! In last week's post we discussed Email Notifications APIs which act as the link between your Workflow automations and you. We have discussed how Zylker Cloud Services uses Email Notifications API in their custom dashboard.
    • Kaizen #216 - Actions APIs : Email Notifications

      Welcome to another week of Kaizen! For the last three weeks, we have been discussing Zylker's workflows. We successfully updated a dormant workflow, built a new one from the ground up and more. But our work is not finished—these automated processes are
    • Kaizen #152 - Client Script Support for the new Canvas Record Forms

      Hello everyone! Have you ever wanted to trigger actions on click of a canvas button, icon, or text mandatory forms in Create/Edit and Clone Pages? Have you ever wanted to control how elements behave on the new Canvas Record Forms? This can be achieved
    • Kaizen #142: How to Navigate to Another Page in Zoho CRM using Client Script

      Hello everyone! Welcome back to another exciting Kaizen post. In this post, let us see how you can you navigate to different Pages using Client Script. In this Kaizen post, Need to Navigate to different Pages Client Script ZDKs related to navigation A.
    • Kaizen #210 - Answering your Questions | Event Management System using ZDK CLI

      Hello Everyone, Welcome back to yet another post in the Kaizen Series! As you already may know, for the Kaizen #200 milestone, we asked for your feedback and many of you suggested topics for us to discuss. We have been writing on these topics over the