When executing the code below, i get this error message, adding line 4 didn't seem the solution. Any tips?
We look up contacts from the Accounts tab. Code is working fine, but keeps on giving errors in the form.
contact = zoho.crm.getRecordById("Accounts",aid);
contactdetails = zoho.crm.getRelatedRecords("Contacts","Accounts",aid);
contactdet = contactdetails.get(0).toString();
contactid = contactdet.getJSON("id");
contactmail = contactdet.getJSON("Email");
contactname = contactdet.getJSON("Full_Name");
contactlang = contactdet.getJSON("Language");
The error message in the form is 'Sorry, the button action couldn't be completed as some error occurred in the intended function. Please check your function.' at the failures tab in Functions I get 'Data type of the argument of the function '756' did not match the required data type of '[BIGINT]' at Line Number: 4'
Cheers