Custom Function to Create Sales Order from custom module

Custom Function to Create Sales Order from custom module

I have created map SOMap and I am trying to create a Sales Order for Zoho CRM using .create(). I believe this is correct, but no Sales Order is created when I run the code. Am I missing something?

My code and the map are contained below.

SOMap = Map();
//Lots of code filling in the SOMap (map shown below)
createSO = zoho.crm.create("Sales Orders",SOMap);

SOMap:

{"Billing Contact":"Derek Doughby",
"On-Site Email":" bailey@dragonfly.com",
"Products":[{"Product Id":2819172000000134131,"Quantity":"1",
"List Price":125.00},{"Product Id":2819172000000131491,"Quantity":"2",
"List Price":300.00},{"Product Id":2819172000000134009,"Quantity":"3",
"List Price":250.00},{"Product Id":2819172000000131483,"Quantity":"4",
"List Price":250.00}],"Location Code":"55555",
"Shipping Contact":"Cate Cedars",
"Install/Delivery Info":"Dropship",
"On-Site Phone":"123-456-7890",
"Billing Phone":"345-678-9012",
"Location City":"Anandale",
"CP Accounts":"Josh Vincent, jvincent@dragonfly.com ",
"Report Recipients":"Josh Vincent, jvincent@dragonfly.com ",
"Account Name":"Test Company 1",
"Billing Code":"55411",
"Integrations":"Mailchimp",
"Billing City":"Coon Rapids",
"Post-Connect Details":"Push the app ",
"Shipping Street":"123 2nd St",
"Shipping State":"MN",
"On-Site Contact":"Bailey Bilski",
"Private Password":"youknowit",
"Requester Company":"dragonfly Wireless",
"Billing Email":" derek@dragonfly.com",
"Other Messaging":"Make it feel like DFLY ",
"Requester Name":"Josh Vincent",
"Billing State":"MN",
"Equipment Notes":" Set with standard config",
"Contact Name":"Aaron Anderson",
"Guest SSID":"DFLY Guest",
"Install/Ship Date":"0018-07-04",
"Website for Graphics":" http://www.dragonfly.com",
"New Or Existing":"New Client Location",
"Shipping City":"Bloomington",
"Sales Order Owner":"",
"Location State":"MN",
"Shipping Phone":"234-567-8901",
"Shipping Code":"55437",
"Equipment Locations":"Spread evenly through office ",
"Subject":"Testing Order 1",
"Design Ideas/Guidelines":"Do what feels right ",
"Billing Street":"123 3rd Blvd",
"Delivery Address":"Use Delivery Address Below",
"Location Street":"123 1st Ave",
"Private SSID":"DFLY Private",
"Additional Info":"They will run private DHCP ",
"Requester Email":" jvincent@dragonfly.com",
"Collected Data":" Email (required)"}

    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

                                                            • Function #46: Auto-Calculate Sales Margin on a Quote

                                                              Welcome back everyone! Last week's function was about displaying the discount amount in words. This week, it's going to be about automatically calculating the sales margin for a particular quote, sales order or an invoice. Business scenario Where there is sales, there's also evaluation and competition between sales reps. A healthy rivalry helps to better motivate your employees to do smart work and close deals faster and more efficiently. But how does a sales rep get evaluated? 90% of the time, it's
                                                            • Zoho CRM Functions 53: Automatically name your Deals during lead conversion.

                                                              Welcome back everyone! Last week's function was about automatically updating the recent Event date in the Accounts module. This week, it's going to be about automatically giving a custom Deal name whenever a lead is converted. Business scenario Deals are the most important records in CRM. After successful prospecting, the sales cycle is followed by deal creation, follow-up, and its subsequent closure. Being a critical function of your sales cycle, it's good to follow certain best practices. One such
                                                            • User Tips: Auto-Create Opportunity/Deal upon Quote Save (PART 1)

                                                              Problem: We use quotes which convert to sales orders but Users / Sales Reps do not create opportunities / deals and go straight to creating a quote. This leads to poor reporting. Implementing this solution improves reporting and makes it easier for users.
                                                            • Custom Function : Automatically send the Quote to the related contact

                                                              Scenario: Automatically send the Quote to the related contact.  We create Quotes for customers regularly and when we want to send the quote to the customer, we have to send it manually. We can automate this, using Custom Functions. Based on a criteria, you can trigger a workflow rule and the custom function associated to the rule and automatically send the quote to customer through an email. Please note that the quote will be sent as an inline email content and not as a PDF attachment. Please follow
                                                            • Function #50: Schedule Calls to records

                                                              Welcome back everyone! Last week's function was about changing ownership of multiple records concurrently. This week, it's going to be about scheduling calls for records in various modules. Business scenario Calls are an integral part of most sales routines.. Sales, Management, Support, all the branches of the business structure would work in cohesion only through calls. You could say they are akin to engine oil, which is required by the engine to make all of it's components function perfectly. CRM


                                                            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


                                                                                                      ご検討中の方