Im trying to copy the information from a registry in a module to a new one in another module, the following code works, the thing is, it does'nt copy the rest of information in the new registry, i'm learning Deluge in an autonomy way so, i don't now what am i missing?
pacienteInfo = zoho.crm.getRecordById("extension38__Pacientes",paciente.get("id"));
pacientePoblacion = pacienteInfo.get("extension38__Poblacion");
info pacientePoblacion;
if(pacientePoblacion == "Adulto Mayor")
{
nuevoRegistro = {"Name":paciente.get("Name"),"Apellidos":paciente.get("extension38__Apellido_s").toString(),"Edad":paciente.get("extension38__Edad"),"Sexo":paciente.get("extension38__Sexo"),"Población":paciente.get("extension38__Poblacion"),"Registro":paciente.get("extension38__Fecha_de_Registro")};
respuesta = zoho.crm.createRecord("extension38__Geriatrias",nuevoRegistro);
respuestaId = respuesta.get("id").toLong();
info respuestaId;
if(respuesta.get("id") != null)
{
deleteRecordMap = Map();
deleteRecordMap.put("module","extension38__Pacientes");
deleteRecordMap.put("id",pacienteInfo.get("id"));
deleteResp = zoho.crm.invokeConnector("crm.delete",deleteRecordMap);
info deleteResp;
}
}