workflow editor

Govind Bysani
Tera Contributor

var grpnameFinal='admin group';

var gr=new GlideRecord('sys_user_group');
gs.info('Entering into filter with contain');
gs.log('in line 21 '+typeof(grpnameFinal));
gr.addQuery('name','CONTAINS',grpnameFinal);
gs.info('Query to run '+encodedquery_1);
//gr.addEncodedQuery('nameLIKE'+grnameFinal);
//gs.info('After contain');
gr.query();
gs.log('Query done');

 

I have written this code in workflow editor script, when this script triggers, I cannot able to see the log which was mentioned in last line(gr.query()) of script. can anyone help me on this.

6 REPLIES 6

Oya Orhan
Giga Guru

Hi @Govind Bysani ,

If you want to see the see query, add this line

var encodedquery_1= gr.getEncodedQuery();

before

gs.info('Query to run '+encodedquery_1);

Regards,

Oya

Hi,

Just ignore that line which was related to encodedquery_1, My issue was the last line in the script which was a log, it was not getting generated in logs table, a[art from that all info and logs are generating.