Getting records from a subform

Getting records from a subform

Hello, i'm trying to fetch some data from a subform that holds information of asset lendings, the subform is located inside every lending register, and this registers are part of a custom module. The problem is getting the data from all registers from the subform of a particular lending, i'm attaching some photos for better understanding.
In the file "prestamos.png" is an example of the module, and if you click on the record (first row "Guia cilindro n°43" for example) it enters to the record details that is shown on the file "Guia.png". On that page is the subform, is the one shown as "Movimiento cilindros". 
The objective of this is, for every lending, generate an e-mail with the information of the subform so the client can get the register of the active lendings, but I haven't been able to get the code to work, it would be of enormous help if we can get some advice on this. 

This is the code used for fetching the data from the subform, and their respective errors:

Code:

GuiaInfo = zoho.crm.getRecordById("Prestamos_Cilindro_II", PrestamoCilindroID);
SubformInfo = GuiaInfo.get("Subformulario_3");
for each entry in SubformInfo
{
cantidad = ifnull(entry.get("Cantidad"),"");
categoria = ifnull(entry.get("Categor_a_de_Producto_1"),"");
kilostotal = ifnull(entry.get("F_rmula_3"),"");
kilosunitario = ifnull(entry.get("Kilos_Unitario"),"");
precio = ifnull(entry.get("Precio_por_unidad_1"),"");
producto = ifnull(entry.get("Garantia"),"");
subtotalregistro = ifnull(entry.get("F_rmula_4"),"");
tipodemovimiento = ifnull(entry.get("Tipo_de_Movimiento"),"");
//
Datamap = Map();
Datamap.put("Cantidad",cantidad);
Datamap.put("Categoria",categoria);
Datamap.put("Kilos_total",kilostotal);
Datamap.put("Kilos_unitario",kilosunitario);
Datamap.put("Precio",precio);
Datamap.put("Producto",producto);
Datamap.put("Sub_Total_Registro",subtotalregistro);
Datamap.put("Tipo_de_Movimiento",tipodemovimiento);
CreateRecord = zoho.crm.createRecord("Prestamo_Cilindros",Datamap);
info CreateRecord;
}

Errors:
  • {"code":"INVALID_MODULE","details":{},"message":"the module name given seems to be invalid","status":"error"}
  • {"code":"INVALID_MODULE","details":{},"message":"the module name given seems to be invalid","status":"error"}
La función se ejecutó correctamente

  • PD: "Prestamos_Cilindro_II" is the actual API name for the custom module.

Thanks!