Howdy, I'm attempting to implement
this custom function that checks for duplicates between the Leads and Contacts modules, using the email address.
- relcont = zoho.crm.searchRecords("Contacts","(Email:equals:" + email + ")");
- relcontsize = relcont.size();
- if(relcontsize > 0)
- {
- update = zoho.crm.updateRecord("Leads",leadid.toString(),{"Duplicate":true});
- }
It doesn't work. I believe I'm not correctly mapping the arguments in the "edit arguments" section, however, I can't find any documentation on the format of these arguments. I've seen in other code examples that the leadid argument should be mapped as Lead Id, but I don't know what to put for the contact email.
Here's what I have now:
Current non-working mappingQuestions: