How to get/update record in a custom module in Zoho Extension through deluge script/Custom function?

How to get/update record in a custom module in Zoho Extension through deluge script/Custom function?

Hi, 

I am working on Zoho Extensions, with a custom module and custom fields in it. And I am succeeded in it.
Now I want to apply some workflows on that custom module. My custom module name is Test Services, and its API name is  test_service, I think.

I have written custom function for that, but it is giving me error: Error evaluating MAP expression.

My code is:
  1. void workflowspace.autoPopulateFields(map test_service)
    {
        testService_ID = input.test_service.get("testextension4.Test_Services.ID");
        info testService_ID;
        testService_record = zoho.crm.getRecordById("CustomModule1", testService_ID.toLong());
        info testService_record;
        recordUpdate = zoho.crm.updateRecord("custommodule1", testService_ID.toString(), { "Email" : "abc@gmail.com" });
        info recordUpdate;
    }


I think, I am making mistake in getting error in giving ID or Module Name to the function.

Please help me.
Thanks 

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








                                ご検討中の方