Custom Function for Custom Module not working
I created a custom module called Listings which is listed as CustomModule4 in CRM. Then I created a basic workflow to name Listings when they are created or edited. Here is the function that isn't working
mp = Map();
mp.put("Listing_Name",streetnum + if(len(streetdir) > 0," " + streetdir,"") + if(len(streetname) > 0," " + streetname,"") + if(len(streettype) > 0," " + streettype,"") + " - " + if(len(listdate) > 0," " + listdate,""));
update = zoho.crm.updateRecord("CustomModule4",listId.toLong(),mp);
info mp;
info update;
and here are the variables:
what am i doing wrong?