Not applicable

Hi @sanathk 

 

I don't think this filter is possible in Flow Designer. You need to write a scheduled job. Sharing the outline of the code-

 

(function() {
  
    var gr = new GlideRecord('incident');
    gr.addQuery('sys_updated_on', '<', gs.daysAgoStart(30)); 
    gr.addQuery('cmdb_ci.name', 'NOT LIKE', 'ABC%'); 
    gr.addQuery('active', true); 
    gr.query();

    while (gr.next()) {
            gr.setValue('state', 7); 
            gr.update();
    }
})();

 

Please mark my answer helpful and correct.

 

Regards,

Amit

View solution in original post