Extension pointers -JS SDK series#9: A look at multiple JS SDK API methods and their potential uses in different scenarios for widgets

Extension pointers -JS SDK series#9: A look at multiple JS SDK API methods and their potential uses in different scenarios for widgets

Throughout the "Extension Pointers - JS SDK" series, we've demonstrated a wide range of APIs, their usage, and how they can be implemented in a widget, along with working examples. Let's look at a consolidation of all the APIs in this post, to get a quick overview of how APIs can be used in specific scenarios.



All of the scenarios below are based on the assumption that you intend and decide to incorporate widgets into your extension.

Scenario 1

Assume you've developed an extension with a connector for integrating a third-party application. You may now have to perform several operations, such as:
  • Retrieving records or related data from a Zoho CRM module to push into the third-party application
  • Fetching third-party application data in order to either insert or update the data in Zoho CRM modules
To implement these functionalities, you'll need to use the appropriate JS SDK API methods.

Let's take a look at the API methods that can be useful during the above-mentioned scenario:

ZOHO.CRM.API.getRecord
Gets all the details of a record
ZOHO.CRM.API.getRelatedRecords
Retrieves related list records
ZOHO.CRM.API.updateRecord
Updates a record in a module
ZOHO.CRM.CONNECTOR.invokeAPI 
Invokes Connector API
ZOHO.CRM.CONNECTOR.authorize 
Prompts the Connector Authorize window

You can refer to this post to understand in detail about working with connectors in a widget, with the help of a working example.

Scenario 2

Assume you want to invoke a Deluge custom function from your widget. The execute SDK method will be handy in this case:

ZOHO.CRM.FUNCTIONS.execute
Invokes a function and return response

You'll have to construct the parameters required for the function and pass it to the execute method, along with the function's API name. Refer to this post for a complete working example.

Note: Only REST API functions can be invoked from a widget using invokeAPI.

Also, when dealing with a Zoho CRM module's meta data, you can use the ZOHO.CRM.META API method.

Refer to this link to get a detailed working example for getting the metadata of fields in modules.

Scenario 3

As important as it is to add new information to a record, it's equally important to delink the information when changes occur, in order to keep information up to date. Similarly, there are other activities you'll need to perform to implement your business scenarios, like adding notes to the record field to provide additional details on the changes made.

The API methods that will help cover this are:

ZOHO.CRM.API.getRelatedRecords
Retrieves related list records
ZOHO.CRM.API.delinkRelatedRecord 
Delinks the relation between the records
ZOHO.CRM.API.addNotes
Adds notes to a record
We've covered delink-related records with a detailed example in this post. Also, you can check out this post for a combined action that delinks a related record and adds notes.

Scenario 4

Let's say you want to handle data between two applications and make Ajax calls from a widget. There might be multiple HTTP methods that you can use to either retrieve, post, delete, or update data between applications.

In such a case, the API you can use is:

ZOHO.CRM.HTTP.delete
Invokes HTTP delete
ZOHO.CRM.HTTP.get
Invokes HTTP get

And there are many more APIs supported by Zoho CRM JS SDK that helps you perform a variety of functions.

We hope you found this information useful. Keep following this space for more info!


SEE ALSO

    Access your files securely from anywhere







                          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

                                                          • Kaizen #197: Frequently Asked Questions on GraphQL APIs

                                                            🎊 Nearing 200th Kaizen Post – We want to hear from you! 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 #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.
                                                          • Celebrating 200 posts of Kaizen! Share your ideas for the milestone post

                                                            Hello Developers, We launched the Kaizen series in 2019 to share helpful content to support your Zoho CRM development journey. Staying true to its spirit—Kaizen Series: Continuous Improvement for Developer Experience—we've shared everything from FAQs
                                                          • Kaizen #193: Creating different fields in Zoho CRM through API

                                                            🎊 Nearing 200th Kaizen Post – We want to hear from you! 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.
                                                          • Client Script | Update - Introducing Commands in Client Script!

                                                            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! Commands


                                                          Manage your brands on social media



                                                                Zoho TeamInbox Resources



                                                                    Zoho CRM Plus Resources

                                                                      Zoho Books Resources


                                                                        Zoho Subscriptions 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 Writer

                                                                                            Get Started. Write Away!

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

                                                                                              Zoho CRM コンテンツ





                                                                                                Nederlandse Hulpbronnen


                                                                                                    ご検討中の方




                                                                                                          • Recent Topics

                                                                                                          • How to book GST paid in zoho books

                                                                                                            hi, i am a new user to Zoho books and not able to book GST paid in books, kindly suggest how i can book it in books. thanks, siddharth
                                                                                                          • I got unknown charge from Zoho

                                                                                                            Good day, I need help disputing a charge I don't know from, zoho. I have ZohoMail and ZeptoMail. I purchase credits for ZeptoMail, and for ZohoMail I am not subcribed.
                                                                                                          • Function 56: Automatically enable the option for customers to pay via bank account

                                                                                                            Hello everyone and welcome back to our series! One of the key features of Zoho Books is its integration with multiple payment gateways, allowing you to receive online payments for your invoices. This ensures faster payments, automates payment tracking
                                                                                                          • Attach Files to Your Notecards and share them on the go!

                                                                                                            Hey everyone! We’re excited to share a feature many of you have been asking for — you can now attach files directly to your text notecards and share with ease! 🙌 This update was built with your feedback in mind, especially for those who wanted a simple
                                                                                                          • Can i connect 2 instagram accounts to 1 brand?

                                                                                                            Can i connect 2 instagram accounts to 1 brand? Or Do i need to create 2 brands for that? also under what subscription package will this apply?
                                                                                                          • Workdrive on Android - Gallery Photo Backups

                                                                                                            Hello, Is there any way of backing up the photos on my android phone directly to a specific folder on Workdrive? Assuming i have the workdrive app installed on the phone in question. Emma
                                                                                                          • How to add a % Growth column for year-over-year comparison (2024 vs 2025)

                                                                                                            Hello, I am trying to build a monthly revenue comparison between 2024 and 2025 in Zoho CRM Analytics. My current setup is: Module: Deals (Affaires) Filter: Stage = Closed Won Date field: Closing Date Grouping: By Month Metrics: Sum of Amount for 2024,
                                                                                                          • How to searchByCriteria records that are under approval?

                                                                                                            I need to search for both approved and pending approval records Is that possible with this method? Or I need to a different method? var priceReqID = $Page.record_id; log(priceReqID); var records = ZDK.Apps.CRM.Price_List_Item.searchByCriteria("Price_Request:equals:"
                                                                                                          • How to add Simple Analytics to Zoho Pages?

                                                                                                            I have a website with Zoho Pages, how do I add Simple Analytics on it? They seem to have code they need to be embedded https://docs.simpleanalytics.com/script
                                                                                                          • Cant seem to delete an email account

                                                                                                            Hello, I have researching for 4 days how to delete an email account and I am absolutely without a clue. The email account I am trying to delete is support<AT>fyshoes<dot>com. It's the first email account I made and it (is???) was associated with the super user (me). I have since changed it to adming<AT>fychoes<dot>com and I see the support email in my list but I just cant seem to get rid of it. Ultimately I want to associate that email account with another user that I want to add. This is really
                                                                                                          • Import data into Multi-Select lookup field from CSV/Excel

                                                                                                            How to import data into a multi-select lookup field from the CSV/Excel Sheet? Let's say I have an Accounts multi-select lookup field in the Deals module and I want to import the Deals with Accounts field. Steps:- 1. Create/edit a multi-select lookup field
                                                                                                          • Script that deletes a record?

                                                                                                            We're using WP Plugin "Integration for WooCommerce and Zoho Pro", and have created a couple of Feeds to send data to Zoho. We are trying to create Contact records, but only based upon condition. Tried to make it with small Deluge function and Workflow,
                                                                                                          • A formula that capitalises the first letter of each word

                                                                                                            Hi all, is there a zoho formula that can capitalise the first letter of each word in a string? INITCAP only capitalises the first letter of the first word.
                                                                                                          • Quotes in Commerce?

                                                                                                            In Zoho Ecommerce, I need to be able to generate quotes, negotiate with customers, and then generate invoices. Currently, I plan to integrate Zoho CRM to generate quotes. After negotiation and confirmation, I will push the details to Zoho Ecommerce to
                                                                                                          • Zoho Commerce - Mobile Application

                                                                                                            Does Zoho Commerce have a mobile application for customers to place an order?
                                                                                                          • Register user through Phone Number by Generating OTP

                                                                                                            In zoho commerce , I am developing website on online food store Inilialy the user get verification code to their email for registering there account for login. But I need to login using phone number by generating OTP automatically rather than verification
                                                                                                          • Unable to change sales_order status form "not_invoiced" to "invoiced"

                                                                                                            I am automating process of creating of invoice from sales_orders by consolidated sales_orders of each customer and creating a single invoice per customer every month. I am doing this in workflow schedule custom function where i create invoice by getting
                                                                                                          • Custom Buttons for Mass Actions

                                                                                                            Hello everyone, We’ve just made Custom Buttons in Zoho Recruit even more powerful! You can now create Bulk Action Buttons that let you perform actions on multiple records at once, directly from the List View. What’s new? Until now, custom buttons were
                                                                                                          • Zoho Vault Passwords

                                                                                                            Is there a way to consume Zoho Vault Manager passwords using the API? Thanks in advance.
                                                                                                          • Is the ChatGPT Assistant integration capable of recognizing WhatsApp voice messages?

                                                                                                            I was wondering: if a visitor sends me a voice message on WhatsApp, would the assistant be able to transcribe it and reply to them?
                                                                                                          • Zoho Creator to Zoho CRM Images

                                                                                                            Right now, I am trying to setup a Notes form within Zoho Creator. This Notes will note the Note section under Accounts > Selected Account. Right now, I use Zoho Flow to push the notes and it works just fine, with text only. Images do not get sent (there
                                                                                                          • 【Zoho CRM】レポート機能のアップデート

                                                                                                            ユーザーの皆さま、こんにちは。コミュニティチームの藤澤です。 今回は「Zoho CRM アップデート情報」の中から、レポート機能のアップデートをご紹介します。 目次 1. レポートのエクスポート時のレコードIDの表示について 2. 通貨項目の表示について 3. レポートの削除の監査ログへの反映について 1. レポートのエクスポート時のレコードIDの表示について これまで、レポートをエクスポートするとファイルにレコードIDが必ず含まれていました。レコードIDが識別子として役立つ場合もありますが、実際には多くの企業で参照されることはありません。
                                                                                                          • Translation in zoho bookings

                                                                                                            We cant translate zoho booking emails. The general text we can change. But what about text like: ""Here a link to join the meeting online:"" and "Add to Zoho Calendar" and "Add to Google Calendar"? No professional business have mixed languages. Its looking
                                                                                                          • Is there any way to bill one client in different currencies on different invoices?

                                                                                                            I have some customers who have their currency set as USD and most of their billing is done in USD.   However, from time to time I have a need to bill them in my base currency GBP for some specific invoices, but there seems to be no way of doing this that I can see. The only workaround that I can see is to create two client records for the same client, one for USD billing and one for GBP billing, but this is not an ideal situation. Is it likely that the (hopefully!) soon to arrive multi-currency support
                                                                                                          • API name for all fields in Zoho Project (Standard or custom)

                                                                                                            Hi! I struggle to find easily all API name of all field in Zoho Project to build my API rest with other services. We can find them very fast in CRM but not in PRoject.   Could you share a function to get the list of all API Name of any field of an App
                                                                                                          • Disappearing Mouse cursor in Zoho Mail / Windows 11 (Chrome + Edge)

                                                                                                            I'm seeing an issue when writing mails with the light theme with the mouse cursor being white and the document area also being white - making it nearly impossible to see the mouse cursor. I see the problem on Windows 11 under Chrome and Edge. (Yet to
                                                                                                          • Zoho Assist not rendering NinjaTrader chart properly

                                                                                                            Hi everyone. Just installed and testing Zoho Assist. I want to display my laptop' screen (Windows 11) on a monitor connected to my Mac mini. The laptop is running a stock trading program called NinjaTrader. Basically, when running, this program displays
                                                                                                          • Link(s) between Notes

                                                                                                            Hello Everyone, It would be great if links could be created between notes. Let's say we have 5 Notes A, B, C , D, E. I would like to be able to link Note A to Note B but not in other way, so no link appears in Note B linking to Note A. An so on, linking
                                                                                                          • Zoho Books | Product updates | August 2025

                                                                                                            Hello users, We’ve rolled out new features and enhancements in Zoho Books. From the right sidebar where you can manage all your widgets, to integrating Zoho Payments feeds in Zoho Books, explore the updates designed to enhance your bookkeeping experience.
                                                                                                          • Feature Request: Assign Documents to Already Entered Bills, Expenses, Invoices, etc.

                                                                                                            Hi Zoho Team, We are regular users of the Documents module in Zoho Books and appreciate its ability to keep financial records well-organized. However, we’ve noticed a limitation: There is no way to attach a document from the "Documents > Files" section
                                                                                                          • I don't see any WITHDRAWL transaction at all

                                                                                                            Hi I manually imported my bank statement to Zoho books today and I am a complete newbie. I have been reading the knowledgebase but unable to fix this. I only see "Uncategorized 91 DEPOSIT transactions". I don't see any WITHDRAWL transaction at all. Also,
                                                                                                          • Shared inbox unable to see replies

                                                                                                            Hi we are a small company me and someone else, we have a shared inbox for our sale@ and contact@ however we have this issue where by if i reply to an email or the other person reply to the email, it does not show it to them and therefore we end up replying
                                                                                                          • Kaizen #136 - Zoho CRM Widgets using ReactJS

                                                                                                            Hey there! Welcome back to yet another insightful post in our Kaizen series! In this post, let's explore how to use ReactJS for Zoho CRM widgets. We will utilize the sample widget from one of our previous posts - Geocoding Leads' Addresses in ZOHO CRM
                                                                                                          • 404 error at checkout

                                                                                                            Our customers are getting a 404 error at checkout. Anyone else with the same problem?
                                                                                                          • FONT Sizing in Notebook

                                                                                                            Hi Kishore - What is the status of adding font sizing to the application? I have several things that I have pasted directly into Notebook and the fonts are HUGE! I would like the ability to highlight them and reduce the font to a legible size. Nothing
                                                                                                          • Can managers Upload documents to their direct rapports?

                                                                                                            Admin employees have the ability to upload documents to employees' files; however, managers do not have add/manage button - is it possible for managers to upload their direct reports' documents, such as absence documents or 121 documents. Is there something
                                                                                                          • Leave balance display for next year

                                                                                                            Is there a way to not have a rollover or not limit the leave balance depending on the date. For example an employee has 10 days leave balance and wants to apply for January leave in December. They cant because the rollover doesnt show the leave balance
                                                                                                          • Please add an “Auto-Apply Unused Credits” toggle

                                                                                                            Hello — please add a simple org-level option to automatically apply unused credits (credit notes, excess payments, retainers) to new invoices and/or bills. An ON/OFF toggle with choices “invoices”, “bills”, or “both” would save lots of manual work for
                                                                                                          • Zoho Books not working/loading

                                                                                                            Hi! I haven't been able to access/load Zoho Books for the past hours. I get a time out (and it is not due to my internet connection). Could you please check this asap? Thank you!
                                                                                                          • Custom Fields with Data Types for Expense and Payments Received in Zoho Books

                                                                                                            Hi all, We are glad to present to you, the option to create Custom Fields for the Expense and Payments received modules in Zoho Books. This also comes with an icing on top of it - Yes, the custom fields can now be created with different data types. Types like Text, Number, Decimal, Amount, Auto Number and Check Box are supported as of now. Rush to the gear icon at the top right corner, select 'More Settings', choose 'Preferences' in the left pane. Click the Expense/Payment preferences where you can
                                                                                                          • Next Page