EncodedQuery to pull out incidents updated 2 days ago?

dianemiro
Kilo Sage

Hi Everyone,

I'm trying to pull out incidents via background script that is updated 2 days ago. But it returns 0 record. But when I checked manually on the list. There are records that are last updated 2 days ago. Thank you so much for your help.

Regards,
Diane

1 ACCEPTED SOLUTION

dianemiro
Kilo Sage

I was able to create an EncodedQuery for this and it gives me the results I need. Regardless, thank you all for your response.

gr.addEncodedQuery('sys_updated_onBETWEENjavascript:gs.daysAgoStart(2)@javascript:gs.daysAgoEnd(2)');

View solution in original post

11 REPLIES 11

One correction, it should be "on or after" in third column to get records updated on last 2 days.

 

Thanks,

Ali

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali

dianemiro
Kilo Sage

I was able to create an EncodedQuery for this and it gives me the results I need. Regardless, thank you all for your response.

gr.addEncodedQuery('sys_updated_onBETWEENjavascript:gs.daysAgoStart(2)@javascript:gs.daysAgoEnd(2)');