Problem by passing values in Zoho CRM through Flow custom function

Problem by passing values in Zoho CRM through Flow custom function

I am trying to write a custom function which updates a field with a value in zoho CRM
I have written the below

  1. void Remove_Tags_GTP(int dealID)
  2. {
  3. getDeal = zoho.crm.getRecordById("Contacts_x_Products",dealID,"crm_sandbox_v2");
  4. contactId = getDeal.get("Contacts").get("id");
  5. updateContact = zoho.crm.updateRecord("Contacts",contactId.toLong(),{"Test_Tags":"Tag1"},"crm_sandbox_v2");
  6. }
But it returns me an error like

""Argument type mismatch - Found 'COLLECTION' but Expected '[MAP]' for the zoho.crm.updateRecord. at line number 8. Resolve the errors and try executing it again""

What is the problem? This code is working in the CRM custom Function but not in Zoho Flow custom Function 

      Zoho Developer Community








                                Zoho Desk Resources

                                • Desk Community Learning Series


                                • Digest


                                • Functions


                                • Meetups


                                • Kbase


                                • Resources


                                • Glossary


                                • Desk Marketplace


                                • MVP Corner


                                • Word of the Day



                                    Zoho Marketing Automation


                                            Manage your brands on social media



                                                  Zoho TeamInbox Resources

                                                    Zoho DataPrep Resources



                                                      Zoho CRM Plus Resources

                                                        Zoho Books Resources


                                                          Zoho Subscriptions Resources

                                                            Zoho Projects Resources


                                                              Zoho Sprints Resources


                                                                Qntrl 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







                                                                            Design. Discuss. Deliver.

                                                                            Create visually engaging stories with Zoho Show.

                                                                            Get Started Now