Field not updating

Field not updating

Hi All

Please have a look at my code and guide me where I have gone wrong, I juts cannot get the field to update in the form "Expiry Date" even though it says the codes executed fine.

records = zoho.crm.getRecordById("Contracts", 4994407000000384299);
info records;
term = records.get('Term');
info term;

Expiry_Date = ifnull (records.get("Inception_Date"),'').toDate().addMonth(term);
info Expiry_Date;
mp = Map();
mp.put( "Expiry Date", Expiry_Date.toDate());
update = zoho.crm.updateRecord("Contracts",4994407000000384299 ,mp);


Info update ;
    Zoho Desk Resources

    • Desk Community Learning Series


    • Digest


    • Functions


    • Meetups


    • Kbase


    • Resources


    • Glossary


    • Desk Marketplace


    • MVP Corner


    • Word of the Day


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




                              ご検討中の方