Data Storage APIs

Data Storage APIs

Sometimes, the extensions you create might require data storage and retrieval capabilities. To help you in such cases, we provide a data store for extensions to set (store) and get (retrieve) data. The data can be deleted when it is no longer required. 

The following APIs provide database management functionalities to extensions. 

Get data: Fetch data from the connected database. 

Request:
  1. ZOHODESK.get('database',{'key': '3', 'queriableValue':'test'}).then(function(response){
  2. //response returns the value, based on the key specified
  3. }).catch(function(err){
  4. // Error handling
  5. })

Note: Both key and queriableValue are optional parameters, but at least one of them must be included in this API request. 

Response:
  1. {
  2. "database.get": {
  3. "data": [
  4. {
  5. "value": {
  6. "test": "testid"
  7. },
  8. "queriableValue": "test",
  9. "key": "3"
  10. }
  11. ]
  12. },
  13. "status": "success"
  14. }

Set data: Asynchronously set data in the connected database.  

Request:
  1. ZOHODESK.set('database',{'key':'3','value': {'test':'testid'}, 'queriableValue':'test'}).then(function(response){
  2. // response returns the value saved
  3. }).catch(function(err){
  4. // Error handling
  5. })


Note: All three parameters--key, value, and queriableValue--must be passed in this API request. The conditions for each parameter are as follows:
  1. The value passed by key can have a maximum length of 50 characters. The only special characters allowed are comma (,), underscore (_), and colon (:). The value of this parameter cannot be NULL. 
  2. The data passed by value must be a JSON object whose size does not exceed 1 KB. Empty JSON objects can be passed too.
  3. The value passed by queriableValue can have a maximum length of 50 characters. The only special characters allowed are comma (,), underscore (_), and colon (:). The value of this parameter can be NULL.

Response:
  1. {
  2. "database.set": {
  3. "value": {
  4. "test": "testid"
  5. },
  6. "queriableValue": "test",
  7. "key": "3"
  8. },
  9. "status": "success"
  10. }

Delete data: Delete data from the connected database.

Request:
  1. ZOHODESK.delete('database',{'key':'3'}).then(function(response){
  2. // response returns the status of deletion
  3. }).catch(function(err){
  4. // Error handling
  5. })

Note: key is a mandatory parameter in this API request. 


Response:
  1. {
  2. "database.delete": {
  3. "delete": "success"
  4. },
  5. "status": "success
  6. }

However, these APIs come with the following limitations:
  1. Scope of data storage varies according to the extension and the installation done.
  2. Data stored by one extension cannot be accessed by another

    Zoho CRM Training Programs

    Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

    Zoho CRM Training
      Redefine the way you work
      with Zoho Workplace

        Zoho DataPrep Personalized Demo

        If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

        Zoho CRM Training

          Create, share, and deliver

          beautiful slides from anywhere.

          Get Started Now


            Zoho Sign now offers specialized one-on-one training for both administrators and developers.

            BOOK A SESSION








                                    You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                        Manage your brands on social media

                                          Zoho Desk Resources

                                          • Desk Community Learning Series


                                          • Digest


                                          • Functions


                                          • Meetups


                                          • Kbase


                                          • Resources


                                          • Glossary


                                          • Desk Marketplace


                                          • MVP Corner


                                          • Word of the Day


                                            Zoho Marketing Automation

                                              Zoho Sheet Resources

                                               

                                                  Zoho Forms Resources


                                                    Secure your business
                                                    communication with Zoho Mail


                                                    Mail on the move with
                                                    Zoho Mail mobile application

                                                      Stay on top of your schedule
                                                      at all times


                                                      Carry your calendar with you
                                                      Anytime, anywhere




                                                            Zoho Sign Resources

                                                              Sign, Paperless!

                                                              Sign and send business documents on the go!

                                                              Get Started Now




                                                                      Zoho TeamInbox Resources



                                                                              Zoho DataPrep Resources



                                                                                Zoho DataPrep Demo

                                                                                Get a personalized demo or POC

                                                                                REGISTER NOW


                                                                                  Design. Discuss. Deliver.

                                                                                  Create visually engaging stories with Zoho Show.

                                                                                  Get Started Now









                                                                                                      • Related Articles

                                                                                                      • Data APIs

                                                                                                        Zoho Desk provides a set of APIs that facilitate interaction between your extension and your help desk portal. The APIs available are listed below: Ticket Object Contact Object Account Object Current Call Object User Object Portal Object Department ...
                                                                                                      • Event APIs

                                                                                                        The following APIs help you incorporate custom functionalities in your extension when certain events occur in your help desk portal. Ticket Events You can configure extensions to receive information when an event, such as adding a comment to a ticket ...
                                                                                                      • Storage API

                                                                                                        Extensions can make use of Storage API to access & modify data from the extension's DB storage. The available storage API 's are, Add data to storage Get data from storage Delete data from storage #STORAGE_DATA_OBJECT Every storage object has the ...
                                                                                                      • Extension APIs

                                                                                                        These APIs fetch or set information related to the extension. Get extension config variable: Fetch the installation parameters of the extension. In production mode, only those parameters that have the value of the secure key set to false are ...
                                                                                                      • Data Storage Add-on in Vertical Solutions

                                                                                                        Within Vertical Solutions, the storage space is divided into two key categories - Data and File. These categories are further classified into Storage and Usage details. In this section, let us see in detail about Data Storage, and how you can buy ...
                                                                                                        Wherever you are is as good as
                                                                                                        your workplace

                                                                                                          Resources

                                                                                                          Videos

                                                                                                          Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                          eBooks

                                                                                                          Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                          Webinars

                                                                                                          Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                          CRM Tips

                                                                                                          Make the most of Zoho CRM with these useful tips.



                                                                                                            Zoho Show Resources