Introducing Serverless Functions!!

Introducing Serverless Functions!!

Serverless architecture, also known as "Function-as-a-service"(Faas), provides a platform for developers to write functions to integrate the CRM and any third-party application. These codes, written in Deluge, can be triggered from any other third party services or it can be triggered directly from any web or mobile app. Most applications require a server that lets them host their applications, parsing, sharing and computing data.

However, having to set up a server just for the sake of providing a simple solution to their customers will not bode well for some. Furthermore, running a server also includes HTTP issues and scalability issues. As such, you can use Zoho CRM's serverless environment to run your application in sync with CRM without the need to put up a server.

If I had to give an example, setting a server is like setting up a restaurant and making people come over. But serverless architecture is like door-step delivery.





Here's how Serverless Architecture work

Let us assume that there is Zylker Inc. which is an online store that sells different products. They, however, are not the manufacturers, hence they need to procure the products from vendors and deliver it to the customers.

Here's how the usual process goes. The customer adds items to the cart, confirms the order, makes the payment and waits for the product to get delivered. Now speaking in the CRM's terminology, when the customer makes the payment, the sales guy gets the payment details and creates a deal record marking the deal stage as won. Then, the process involving Warehouse processing and Delivery gets started.

For the payment details and shipment details, there are different applications that handle the process. You can use the data from those applications and update the CRM through the use of webhooks.

With Middleware softwares:



And now with Serverless Functions:



Getting Started with the process:

1. Writing the Function:

Now that you're sure of what you need to do, you can write your business logic within functions. The code for the above logic would be something like this:



As you can see above, you define what the function needs to do when it is executed. As such, whenever the function is triggered from Zylker's application, the corresponding data in CRM is updated. But even so, there's a tiny problem. We do not know the format of the incoming data to CRM.

The types of input can be:

  • Parameters
  • Stream(Body)
  • File
  • Headers

Functions can parse most of the input types and process the information regardless. However, there needs to be some pre-defined lines of code that are to be given within the functions to facilitate this process. For instance, the function can get the entire Request Object and turn them into readable arguments, which can be used at your disposal. No matter what type the input is, you can use them to insert, update or make any other changes to your CRM as per your requirement. Not only can you get the entire request object, you can also set up what response the function, or in a way, the CRM, has to give out to the end user.

2. Authentication:

You need to properly authenticate your application with Zoho. There are 2 methods to do that.

  • OAuth
  • API Key

OAuth is a bit complex but the most widely used method that most applications adopt, whereas API Key is much more simple, but certain security inadequacies made it such that there are only some applications that use this method. Nevertheless, you can decide by yourself which one fits you best, based on the 3-party application.

3. Registering with Webhook

Now that you've created the function and made the function available as an API call. You need to register, or provide the URL to the other 3rd party application. This step is done so that the 3rd party application can be programmed to send a webhook based on certain conditions.

In this case, a webhook may be triggered when the shipment status is moved from "Packaged" to "Out-for-Delivery". When the webhook is triggered, the URL given within the webhook triggers the function within CRM. And based on the data received from the webhook, the shipment status of the customer within CRM can be changed accordingly.



Is it New to Zoho CRM?

I'm sure most of you are aware of "Functions", the one that lets you add additional functionality to your CRM. Those who are using “Functions” to write their own business logic to connect to third party apps, other Zoho services, web hooks, etc., have been using this serverless computing in a way.

Functions are designed to help people solve the issue of running servers, creating their business logic or integrating custom applications. Hence, it can be set to trigger based on events from within CRM or from external sources, without a server.

Learn more from our resources - Serverless Functions.



    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





                                                            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

                                                                                                            • Rich text Merge field - Not using font specified in HTML

                                                                                                              I have a rich text merge field in a writer template which is creating a table. I have chosen to use this method instead of a repeat region because I need to specify specific cell background colours which change every time the document is created. The
                                                                                                            • Can't change form's original name in URL

                                                                                                              Hi all, I have been duplicating + editing forms for jobs regarding the same department to maintain formatting + styling. The issue I've not run into is because I've duplicated it from an existing form, the URL doesn't seem to want to update with the new
                                                                                                            • ヒートマップ詳細設定について

                                                                                                              はじめまして マーケティング担当の浅田です。 PageSenceのヒートマップ設定について質問です。 単一ページ毎の設定は上手くできるのですが 詳細設定にて、トップページのURLを含ませ全体のヒートマップを計測できないか試したところ お知らせ:データを受信していません。と表示されてしまいます。 トップページURLで始まるページの条件も試しております。 全頁を反映させたいと思い、詳細設定を上手く設定できたらと考えております。 どなたか詳しい方がいらっしゃいましたら、教えて頂けませんでしょうか 宜
                                                                                                            • Automatic category assignment

                                                                                                              Hi, I’d like to ask if there is a way to automatically assign an expense category based on the recognized Merchant. What would be the simplest way to set up automatic category assignment? Alternatively, is there an option to first choose the category
                                                                                                            • Experience with Zoho Vertical Studio

                                                                                                              I'm considering Zoho Vertical and would love to hear from some devs who've been using it. The Zoho ecosystem is pretty solid, so I assume the experience has been pretty good, but sometimes Zoho has its quirks. Overall, has your experience been positive?
                                                                                                            • LinkedIn Chrome Extension

                                                                                                              Hello - I believe it is a known issue that the LinkedIn extension Resume Extractor has stopped working and they are working on potential fixes. Wondering how others users are finding this issue and if there are any better workarounds for this issue? It
                                                                                                            • Advance PDF creation from CRM data

                                                                                                              I'm trying to create a PDF export of data in the CRM. My problem is I want a pretty complicated format for the data. I'm trying to export multiple modules worth of data, with nested one-to-many relationships between the modules. Along with that, I want
                                                                                                            • Where does this report come from in the Zoho One ecosystems?

                                                                                                              Is this directly from MA, Analytics or ??? ???
                                                                                                            • Sub-Form Padding in CSV Export

                                                                                                              Hi, When you use the Sub-Form, and for example you have a Date Field on the Main Page, then Option 1 and Option 2 fields on the Subform, when you export this to CSV the Date column will only have the Date in 1 row, the first row, it would be nice to pad
                                                                                                            • More Formula Functions

                                                                                                              Hi, I would ike for example to be able to have a Date Field and Formula Fields, and then in the Formula Fields I would like to grab just the Month of the above Date Field or the Week Number of the above Date Field. So more "Functions" than the current
                                                                                                            • File upload size limits

                                                                                                              I am designing a contact form in Zoho Creator with File upload facility. I am not sure where and how to set the following properties for the same: Allowed File Types Maximum Size of the Attachment Number of Attachments
                                                                                                            • Composite Services and Account Tracking

                                                                                                              I am looking to garner support/request the ability to make composite services. A quick search in the forums brings up multiple requests for this feature. I fail to see why an item is mandatory while services are optional. I also would like to see the
                                                                                                            • All operation codes getting Not applied in WO-TT22J1025WOR0471, SR-TT22J1025PRE0423,FOR VIN-W1K6G2AB2SL005130.

                                                                                                              Dear Support Team, Please refer attached screenshot. All operation codes getting not applied in work order. Request you to please check and update ASAP.
                                                                                                            • Customer Grouping

                                                                                                              Hi, how can I group multiple customers into single group. So that I can have idea of accounts receivables of all the customers in single group. Like if there are multiple subsidiaries of same company we have having a business with, and want to view the
                                                                                                            • Bank Receipt Catagorization

                                                                                                              Hi, how can I match a bank deposit to multiple customer's invoices ? For e.g. A single person paid to us on behalf of different five customers. I need to keep the separated invoices for each customer
                                                                                                            • "Performed changes in the query is not allowed due to following reason" when adding columns or reordering data

                                                                                                              I'm trying to make changes to a query but every time i try to save it i get this error message.  I'm not touching the data it's flagging.  All I've tried to do is reorder a couple of fields and add a new one.  Why won't it let me do this?  It's a core
                                                                                                            • Exclude Segment from Campaign Recipients

                                                                                                              I've created two Segments in order to separate Non-Marketing Contacts from Marketing Contacts. I'd like to send an Eblast to all Marketing contacts in my lists, but when I go to select Recipients, I have two options: 1. To Choose Lists to Send to; 2.
                                                                                                            • Reschedule Multiple/Mass Calls at Once

                                                                                                              When we go into a Call record, we have the option to "Reschedule Call." How can we select multiple Calls at once from the Activities tab and Reschedule them? The big use case for us: We have many leads that our reps are supposed to call on a daily basis.
                                                                                                            • Option to Empty Entire Mailbox or Folder in Zoho Mail

                                                                                                              Hello Zoho Mail Team, How are you? We would like to request an enhancement to Zoho Mail that would allow administrators and users to quickly clear out entire folders or mailboxes, including shared mailboxes. Current Limitation: At present, Zoho Mail only
                                                                                                            • I want to Make the due date of the project appears automatically

                                                                                                              hello everyone I want to know if the zoho projects app can add automatically the END DATE of the project I added the duration, start after dates of each tasks in the project template & the starting date of the project itself and the end date of it doesn't
                                                                                                            • Drag 'n' Drop Fields to a Sub-Form and "Move Field To" Option

                                                                                                              Hi, I would like to be able to move fields from the Main Page to a Sub-Form or from a Sub-Form to either the Main Page or another Sub-Form. Today if you change the design you have to delete and recreate every field, not just move them. Would be nice to
                                                                                                            • Get Zoho Mail API working (including DRE Connector, Oauth Token, ZUID, ZOID & ACCOUNT_ID)

                                                                                                              Disclaimer: I’m not a professional coder! Do you need to use Zoho Mail API? Me too. It lets you do all sorts of things — like reading the complete header of an email, or forwarding an email with its attachments — which is what I wanted to do. But setting
                                                                                                            • Kaizen #129 : Client Script Support for Blueprints

                                                                                                              Hello everyone! Welcome to another week of Kaizen. Today, let us discuss about how you can use Client Script during a Blueprint transtion to meet your requirements. This Kaizen post will provide solution for the post - Need non-mandatory fields in blueprint
                                                                                                            • Deluge Tips & Tricks: Mastering dates and times

                                                                                                              Hello everyone! We're bringing back our Deluge Tips & Tricks series, where we show you how to make the most of Deluge for achieving a wide range of use cases. Working with dates and times is a fundamental part of almost any business application. Whether
                                                                                                            • Adding a Button in a Form in Zoho Creator App

                                                                                                              Hi I want to know how can I add a Button in Zoho Creator form. I have options that I select from a multiselect options and I want the button to add those selected options in a Subform. I do not want to add on a Page Builder I want it inside a specific
                                                                                                            • Feature Enhancement Request – Text Formatting Options in Item Description (Zoho Books/Quotes Module)

                                                                                                              Dear Zoho Development Team, Greetings from Radiant360 Integrated Technical Services LLC. We would like to bring to your attention a functional limitation we've encountered within the Item Table / Quote Description section of Zoho Books (and Zoho CRM Quotes).
                                                                                                            • Internal Exception for Creator function

                                                                                                              I have been running a script successfully for several days using the scheduler in my application. Now today it suddenly creates and Internal Exception error. Nothing has changed about the script. The data is still retrievable from the web service it is using. Why would this suddenly be happening for no apparent reason? Also noticed that my usage logs are not up to date. Is something changing behind the scenes?
                                                                                                            • How to Set Up a Custom Domain and Customize Homepage

                                                                                                              Hello, I am experimenting with Zoho Creator to build applications for my own use case and have encountered a couple of issues: 1. Custom Domain Access: Is it possible to access my Zoho Creator application through a domain that I own? If so, how does the
                                                                                                            • Announcing new features in Trident for Mac (1.26.0)

                                                                                                              Hello everyone! Trident for macOS (v1.26.0) is here with new updates to securely manage your passwords, locally save your emails, and protect against emails with suspicious URLs. Let's take a quick look at them. Manage passwords with Zoho Vault eWidget.
                                                                                                            • Default Value on a Number

                                                                                                              Hi, I would be nice to also be able to set the Default Value for a Number Field, not just the Initial Value shown, so if not on the screen so not enetred it can have a value of 0 for example. Thanks Dan
                                                                                                            • Having trouble fetching contents of Zoho Connect Feeds using the API, requesting alternative API documentation.

                                                                                                              I'm trying to retrieve feed/post data from Zoho Connect using the API but facing challenges with the current documentation. What I've tried: OAuth authentication is working correctly (getting 200 OK responses) Tested multiple endpoints: /pulse/nativeapi/v2/feeds,
                                                                                                            • Tip#45: Custom Tags and Cluster Tags

                                                                                                              Tagging your work items helps categorize and label work items within your Zoho Sprints workspace. Now, this feature is expanded across multiple modules, along with the introduction of cluster tags that offer an advanced tagging mechanism. Manage Tags
                                                                                                            • Extensions 101 webinar series: Build, integrate, and monetize with extensions

                                                                                                              Attention developers! Are you ready to take your extension development skills to the next level? We're excited to bring back the Extensions 101 webinar series with an expanded lineup of Zoho products and an introduction to more platform features. Last
                                                                                                            • When using "locations" in zoho books, can you keep the two locations totally separate from each other?

                                                                                                              I am looking to add a location but I don't want to intermingle the banking or other accounts. I want that to be like two separate independent branches that use different banking accounts, accounts payable, and accounts receivable. The people who are in
                                                                                                            • [Free Webinar] User Management in Zoho Creator - Creator Tech Connect

                                                                                                              Hello Everyone! We welcome you all to the upcoming free webinar on the Creator Tech Connect Series. The Creator Tech Connect series is a free monthly webinar that runs for around 45 minutes. It comprises technical sessions in which we delve deep into
                                                                                                            • A couple of minor enhancements to Workflows

                                                                                                              Last updated on September 17, 2024: These enhancements were initially available for early access, and we've now enabled them for all users. We are elated to announce a couple of enhancements to custom functions in our Workflows! Say hello to: "Source"
                                                                                                            • Business Continuity - Disaster Recovery

                                                                                                              I know about the Zoho CRM backup .zip files, however, this doesn't include any of the infrastructure with like custom fields or custom modules. I am curious on what everyone has in place for a true backup or what your plan is if your Zoho instance were
                                                                                                            • Free webinar alert on October 16 - Less Complexity, More Security: Workplace + Directory

                                                                                                              Hello Zoho Workplace Community! Security and productivity shouldn't be at odds—and with Zoho, they're not. Discover how Zoho Workplace + Directory delivers seamless collaboration with enterprise-grade security, all in one integrated ecosystem. Join our
                                                                                                            • Narrative 11: Are your customers happy?

                                                                                                              Behind the scenes of a successful ticketing system: BTS Series Narrative 11: Are your customers happy? Happiness isn't just something you experience; it's something you remember. Hear your customers' voices by enabling customer happiness ratings in Zoho
                                                                                                            • Don't understand INVALID_REQUEST_METHOD when I try to post up an attachment

                                                                                                              When I make the POST request (using python requests.post() for files): https://www.zohoapis.com/crm/v8/Calls/***************01/Attachments I get this response: r:{ "code": "INVALID_REQUEST_METHOD", "details": {}, "message": "The http request method type
                                                                                                            • Next Page