Client Script Payload Size Bug

Client Script Payload Size Bug

var createParams = { "data": [{ "Name": "PS for PR 4050082000024714556", "Price_Request": { "id": "4050082000024714556" }, "Account": { "id": "4050082000021345001" }, "Deal": { "id": "4050082000023972001" }, "Owner": { "id": "4050082000007223004" }, "Approval_Status": "Draft", "Subform_1": [{ "Availability": "2 Weeks", "Supplier": "Morgan Arabia", "Description": "AX3000 Ceiling Mount Dual-Band Wi-Fi 6 Access Point\nPORT:1×1Gbps RJ45 Port\nSPEED:574Mbps at 2.4 GHz + 2402 Mbps at 5 GHz\nFEATURE: 802.3at POE, 2×Internal Antennas, 160MHz Supported, MU-MIMO, Seamless Roaming, Band Steering, Beamforming, Load Balance, A", "Item1": "WIFI 6 AP", "Items_quote": "EAP653", "Quantity": 4, "Unit_Price_cost1": 500, "Unit": "pcs" }, { "Availability": "2 Weeks", "Supplier": "Morgan Arabia", "Description": "Omada Hardware Controller\nPORT: 2× 10/100 Mbps Ethernet Ports, 1× USB 2.0 Port, 1× Micro USB Port\nFEATURE: Cloud Access, Centralized Management for Omada EAPs, Powered by 802.3af PoE or Micro-USB Power Adapter, Omada App", "Item1": "Hardware Controller", "Items_quote": "OC200", "Quantity": 1, "Unit_Price_cost1": 340, "Unit": "pcs" }, { "Availability": "2 Weeks", "Supplier": "Morgan Arabia", "Description": "Omada™ 52-Port Gigabit L2+ Managed Switch with 48-Port PoE+\nPORT: 48× Gigabit PoE+ Ports, 4× Gigabit SFP Slots, RJ45/Micro-USB Console Port\nSPEC: 802.3at/af, 384 W PoE Power, 1U 19-inch Rack-mountable Steel Case\nFEATURE: Integration with Omada SDN Con", "Item1": "L2+ 48 Port POE+ Switch", "Items_quote": "SG3452P", "Quantity": 1, "Unit_Price_cost1": 1682, "Unit": "pcs" }, { "Availability": "2 Weeks", "Supplier": "Morgan Arabia", "Description": "SafeStream™ Gigabit Multi-WAN VPN Router\nPORT: 1× Gigabit SFP WAN Port, 1× Gigabit RJ45 WAN Port, 2× Gigabit WAN/LAN RJ45 Ports, 2× Gigabit RJ45 LAN port\nFEATURE: Integration with Omada SDN Controller, Support 100 IPsec VPN Tunnels, 50 PPTP/L2TP VPN Tunn", "Item1": "WAN Router", "Items_quote": "ER7206", "Quantity": 1, "Unit_Price_cost1": 490, "Unit": "pcs" }, { "Availability": "2 Weeks", "Supplier": "Morgan Arabia", "Description": "AX5400 Ceiling Mount Dual-Band Wi-Fi 6 Access Point\nPORT: 1×2.5 Gigabit RJ45 Port\nSPEED:574Mbps at 2.4 GHz + 4804 Mbps at 5 GHz\nFEATURE: 802.3at POE and 12V DC, 6×Internal Antennas, MU-MIMO, 160MHz Supported, Seamless Roaming, Band Steering, Beamforming, Load Balance, Airtime Fairness, Centralized Management by Omada SDN Controller, Omada App", "Item1": "WIFI 6 AP", "Items_quote": "EAP673", "Quantity": 4, "Unit_Price_cost1": 580, "Unit": "pcs" }, { "Availability": "2 Weeks", "Supplier": "Morgan Arabia", "Description": "Omada VPN Router with 10G Ports\nPORT: 1× 10G SFP+ WAN Port, 1× 10G SFP+ WAN/LAN Port,1× Gigabit SFP WAN/LAN Port, 8× Gigabit RJ45 WAN/LAN Ports, 2× USB3.0 port\nFEATURE: Integration with Omada SDN Controller, Support SSL VPN, OpenVPN and IPsec/ PPTP/ L2TP/ L2TP over IPSec VPN, 1500000 Concurrent Sessions, Dual Power Supply, Load Balance, Link Backup, 4G LTE Backup with USB Dongle, Policy-based Firewall, Static Routing, Policy Routing, Multi-net DHCP, Guest Portal, VLAN, Support RJ45 SFP+/SFP Module", "Item1": "WAN Router", "Items_quote": "ER8411", "Quantity": 1, "Unit_Price_cost1": 1685, "Unit": "pcs" }] }] };

var resp1 = ZDK.Apps.CRM.Connections.invoke(
    "overdue_deals",
    "POST",
    2,
    createParams,    
    {}
);

So the same payload works in CRM Integration task create record but when I try to make an api request from client script I get this error 





I am most certain this is a payload size issue in ZDK, because the exact same payload works In CRM integration Tasks and also in deluge invokeurl there's no issue 

If you reduce the size of description of any lineitem, it will work in the client script it will work

But in integration task and deluge invokeurl you can have 100s of subform items without any issue, client script breaks at a few

      Zoho Campaigns Resources


        • Desk Community Learning Series


        • Digest


        • Functions


        • Meetups


        • Kbase


        • Resources


        • Glossary


        • Desk Marketplace


        • MVP Corner


        • Word of the Day


        • Ask the Experts


          • Topic Participants

          • Arbaz

          Zoho CRM Plus Resources

            Zoho Books Resources


              Zoho Subscriptions Resources

                Zoho Projects Resources


                  Zoho Sprints Resources


                    Zoho Orchestly Resources


                      Zoho Creator Resources


                        Zoho WorkDrive Resources



                          Zoho CRM Resources

                          • CRM Community Learning Series

                            CRM Community Learning Series


                          • Tips

                            Tips

                          • Functions

                            Functions

                          • Meetups

                            Meetups

                          • Kbase

                            Kbase

                          • Resources

                            Resources

                          • Digest

                            Digest

                          • CRM Marketplace

                            CRM Marketplace

                          • MVP Corner

                            MVP Corner




                            Zoho Writer Writer

                            Get Started. Write Away!

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

                              Zoho CRM コンテンツ








                                ご検討中の方