Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

validation of addEncodedQuery()

Community Alums
Not applicable

Hi ,

i had requirement in email inbound script.

i need to check whether my encoded query is valid or not 

var gr=new GlideRecord('sys_user');

gr=gr.addEncodedQuery(query);

gr.query();

 i need to check if this is not going to an error when query is not valid

when query is 'user=abel.tutor' there 'll not be generation of result

suggest me here how can i validate addEncodedQuery(query)..

5 REPLIES 5