cannot POST xmlData via the request body to create or update records (414 Request-URI Too Large error)

cannot POST xmlData via the request body to create or update records (414 Request-URI Too Large error)

Hello,

I use the API insertRecords and updateRecords methods to create and update entries (contacts, accounts, products, sales orders...) in ZohoCRM. I encounter "414 Request-URI Too Large" errors when the value for the xmlData parameter is too big, which happens when creating or updating sales orders which embed many products. Indeed, the calls I make are as follows (I stripped out the auth token, the item id and the url-encoded  serialized   XML for safety and concision):
  1. POST crm.zoho.com/crm/private/json/SalesOrders/updateRecords?authtoken=[token]&scope=crmapi&id=[sales order id]&version=2&newFormat=2&xmlData=[url-encoded XML representation of a sales order with its ordered products]
  2. Content-Length: 0 (meaning that the content of the body request is empty)
Which causes the following error when the xmlData value is too big:
  1. <html><head><title>414 Request-URI Too Large</title></head>
  2. <body bgcolor="white"><center><h1>414 Request-URI Too Large</h1></center></body></html>
To shorten the URL, I tried to move the request parameters in the request body in different ways:
  • all the parameters
  1. POST crm.zoho.com/crm/private/json/SalesOrders/updateRecords
  2. Content: authtoken=[token]&scope=crmapi&id=[sales order id]&version=2&newFormat=2&xmlData=[url-encoded XML representation of a sales order with its ordered products]
  • only the xmlData parameter
  • POST crm.zoho.com/crm/private/json/SalesOrders/updateRecords?authtoken=[token]&scope=crmapi&id=[sales order id]&version=2&newFormat=2
  • Content: xmlData=[url-encoded XML representation of a sales order with its ordered products]

  • But all these attempts cause an  Unable to process your request. Please verify if the name and value is appropriate for the "xmlData" parameter error response which makes me think that the body of POST requests is ignored although request bodies are made to exchange data. The XML content is already minified (no indentation, no line return) so I cannot shorten the URL more than that.

    I am really stuck with this issue. If it is actually possible to POST xmlData in the request body, how should I do it, please?

    Luc Sorel, PhD - R&D at www.podbox.com/#!/Zoho CRM

      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 #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


                                                              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

                                                                                                Get Started. Write Away!

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

                                                                                                  Zoho CRM コンテンツ



                                                                                                    Nederlandse Hulpbronnen


                                                                                                        ご検討中の方