trying to update data with deluge function
I'm trying to update a field trough a workflow with the following script.
This script works fine as long as i use "save and execute" but as soon as I'm trying to use it in a workflow I get the following error:
Data type of the argument of the function '756' did not match the required data type of '[BIGINT]'at lineNumber 3
get_leads = zoho.crm.getRecordById("Leads",leadId.toLong());
Titelvor = ifNull(get_leads.get("Titel_vorgestellt"),"");
Titelnach = ifNull(get_leads.get("Titel_nachgestellt"),"");
Vorname = ifNull(get_leads.get("Vorname"),"");
Nachname = ifNull(get_leads.get("Nachname"),"");
personname = Titelvor + " " + Vorname + " " + Nachname + " " + Titelnach;
mp = Map();
mp.put("Person_Name",personname);
update_record = zoho.crm.updateRecord("Leads",leadId,mp);