So then the idea is that we need to have a query to the table something like this?



var nies = gs.GlideRecord('u_periodos');


nies.query();


var now = gs.endOfYesterday();


var vigencia = current.u_fecha_fin; //expiration dateif(vigencia < now){


current.u_hrs_vencidas = current.u_hrs_restantes;


current.u_hrs_restantes = 0;


current.u_activo = 'true';


gs.addInfoMessage("TEST");


}



I'd really appreciate If you see something wrong with it and help me correct it, or additionally if you could give me some more detail or examples on how to create the scheduled job.



Thanks and regards!