Skip to main content

Greetings, folks:


All I want is to create the next record:


let nuevoRegistro = {
'ALUMNOS': [{ "id": regAlumno.id }],
'ANHO': [{ "id": registroAnho.id }],
'CENTRO': [{ "id": registroCentro.id }],
'isAlta': { name: "Yes" },
'CLASE': { name: clase },
'CURSO': [{ "id": regCurso.id }],
};

With the following function:


let crearRegistros = async function (tabla, nuevoReg) {
return await tabla.createRecordAsync(nuevoReg);
}

And what do I get when I run this? await crearRegistros(tabla, nuevoRegistro);


U: Validate this value before parsing


I couldn´t find any info about scripting errors. I hope someone did and would like to share what I’m doing wrong. Thanks!

Regarding this problem, I still don´t know why, but it has dissapeared. Now it works.


I suspect I built the record wrong. Thanks a lot!


Reply