Update date field custom module using Zoho Inventory Update Record

Update date field custom module using Zoho Inventory Update Record

I'm trying to update a date field in a custom module inside zoho inventory but keep getting this error:

"code": 6, "message": "syntax.error.invalid.json"

This is how my code looks:

campo_sku = Map();
campo_sku.put("cf_sku_master",i_sku);
campo_sku.put("cf_sku_common",i_sku_common);
campo_sku.put("cf_sku_updated","Yes");
campo_sku.put("cf_date_sku_was_updated",zoho.currentdate);
item_update = campo_sku;
info item_update;
ru = zoho.inventory.updateRecord("cm_po_ref",organizationID,i_recID,item_update,"zoho_inventory");

I've tried different formats for the date and when I do that it gives incorrect date format.
When I run this code without the update of that field it works with no issue.


      Zoho Campaigns Resources


        • Desk Community Learning Series


        • Digest


        • Functions


        • Meetups


        • Kbase


        • Resources


        • Glossary


        • Desk Marketplace


        • MVP Corner


        • Word of the Day


        • Ask the Experts


          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 コンテンツ




                                ご検討中の方