workflow editor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2024 08:01 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2024 08:10 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2024 08:17 AM
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.