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.

Can anyone help to understand the below query

akhila13
Tera Expert

gr.addEncodedQuery('state!=4^sys_created_onRELATIVEGT@dayofweek@ago@'+days+'^sys_created_onRELATIVELT@dayofweek@ago@'+(days - 1));

7 REPLIES 7

Ivana1
Kilo Explorer

Hi community,

could I ask you please for some manual, how to read the conditions as  "opened_atRELATIVELE@dayofweek@ago@7^EQ"  and so on?  Is this some query language? 

 

Thank you very much.

Kind Regards,

Ivana

Hi Ivana

 

It is stating relative confition :

in layman term :

opened at time is 7 days ago .

 

Regards
Ashish Raj

With it being RELATIVELE (Relative Less than or Equal), i think the laymans term would be closer to:
Opened before 7 days ago