Connect Custom Module with Contacts via MultiSelect and Deluge
I have created a custom module called "Customer Account Plan" which is created by a button on the Accounts module; this button will auto complete several fields as it's creating the record.
I want to associate the Contacts that are relevant to this Account to the newly created "Customer Account Plan" record... but I'm getting a bit stuck. I have created a multifield lookup, and I want it to be populated when the button is pressed.
How can I pass all of the Contacts that match the Account into the new record.
- // Find Linked Contacts
- varContactDetails = zoho.crm.getRelatedRecords("Contacts","Accounts",custid);
- //Create a list of just the matching Deals IDs
- varContactIDs = List();
- for each varContact in varContactDetails
- {
- varContactIDs.add(varContact.get("id"));
- mp.put("Contacts_Field",ifnull(varContactIDs,""));
- }
I get the error :
{"code":"INVALID_DATA","details":{"expected_data_type":"jsonobject","api_name":"Contacts_Field","json_path":"$.data[0].Contacts_Field[0]"},"message":"invalid data","status":"error"}
There could be more than one contact to add.
I'm fairly new at CRM Deluge so any advise is welcome
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
-
-
-
-
-
-
-
-
-
Sticky Posts
Focus Group Webinar - Streamline Record Creation with Wizards
Hi there, With all the time your users spend on record creation, do you feel like they have the most seamless experience while doing it? For different types of records or those with a LOT of fields, do your users spend time navigating to enter data repeatedly?
Notes and Attachments visibility can now be restricted based on profiles
Dear All, We hope you're well! We are here with a quick update about Notes and Attachments profile permissions. In the past, a record's Notes and Attachments were visible by default to all users with record access. However, as notes and attachments can
Identify and prioritize profitable deals: Zoho CRM Forecasts help users focus on revenue-driving opportunities
Post moderated on: 7th November: Release update: This feature is now available for users in all DCs. Dear Customers, We hope you're well! At any given time, a sales rep handles multiple deals, each progressing at its own pace. But not all deals will succeed—some
Gain control over record sharing with portal users through our new enhancement: criteria-based data exposure
Dear Customers, We hope you're well! Portals is a self-service avenue through which your clients can access and manage their direct and related data in Zoho CRM. This empowers them to be more independent and enables them to experience a sense of transparency
Context and convenience just got better with Zia's email intelligence
Dear Customers, We hope you're well! We are in 2024, and email as a tool is only getting more powerful each day. While it enables seamless daily correspondences, we are here with a set of abilities that will enhance your user experience and save several
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.