In writing functions, it can be tedious to add numerous arguments or assign variables in the function code. Is there a way to simply loop through all the fields in a record and save each field value to a variable named after the field's API name?
Something like this:
contact_record = zoho.crm.getRecordById("Contacts",contact_id);
for each field in Contacts
{
add code to create variable with API name of field;
variable = ifnull(contact_record.get("API_Name"),"");
}
contact_map = Map();
// example code below
contact_map.put("Description","The contact's full name is " + First_Name + " " + Last_Name);
update_response = zoho.crm.updateRecord("Contacts",contact_id.toLong(),contact_map);
This is just a simple example but you can see how this would simplify writing functions.