Custom Function Argument Mapping Formatting Help

Custom Function Argument Mapping Formatting Help

Howdy, I'm attempting to implement this custom function that checks for duplicates between the Leads and Contacts modules, using the email address.

The code:
  1. relcont = zoho.crm.searchRecords("Contacts","(Email:equals:" + email + ")");
  2. relcontsize = relcont.size();
  3. if(relcontsize > 0)
  4. {
  5. update = zoho.crm.updateRecord("Leads",leadid.toString(),{"Duplicate":true});
  6. }


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 mapping
Questions:
  1. What value should I put for the contact email?
  2. Is there a log or console where I can see my functions run?
  3. Is there a formatting guide, or list, where I can learn about how to format these argument map values?

Thank you!