Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

validation of addEncodedQuery()

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