TopCopy

GlideRecord Query, Get

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

GlideRecord Insert

var gr = new GlideRecord('table');
gr.initialize();
gr.field = 'value';
gr.insert();