var target = new GlideRecord('table'); target.addQuery('field','value'); target.query(); //target.get('sys_id'); while (target.next()) { //add code here }
var gr = new GlideRecord('table'); gr.initialize(); gr.field = 'value'; gr.insert();