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
- void Remove_Tags_GTP(int dealID)
- {
- getDeal = zoho.crm.getRecordById("Contacts_x_Products",dealID,"crm_sandbox_v2");
- contactId = getDeal.get("Contacts").get("id");
- updateContact = zoho.crm.updateRecord("Contacts",contactId.toLong(),{"Test_Tags":"Tag1"},"crm_sandbox_v2");
- }
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
Access your files securely from anywhere
Zoho Developer Community
Deliver unforgettable customer experiences
Deliver unforgettable customer experiences
New to Zoho Marketing Plus?
Everything you need to run your marketing
New to Zoho Marketing Plus?
Everything you need to run your marketing
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
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 Campaigns Resources
Zoho CRM Resources
Zoho Show Resources
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.