OOB Archive rule condition

Demo24
Tera Expert

Hi,

Requirement is to archive all the incident records which were closed and last updated is 10 years ago

What should I select in my archive rule relative condition?

 

should it be updated relative before 10 years ago or 10 years from now?? and what is the difference between these two?

filter condition.png

1 ACCEPTED SOLUTION

Sagar Pagar
Tera Patron

Hi @Demo24,

 

Yes. It should be relative before 10 years ago.

 

relative before 10 years ago: It will give all incidents updated before 10 years form current date.

Filter: sys_updated_onRELATIVELT@year@ago@10

 

relative before 10 years from now: It will give incidents updated before 10 years from the current date. 

Filter: sys_updated_onRELATIVELT@year@ahead@10

 

Thanks,

Sagar Pagar

The world works with ServiceNow

View solution in original post

3 REPLIES 3

Sagar Pagar
Tera Patron

Hi @Demo24,

 

Yes. It should be relative before 10 years ago.

 

relative before 10 years ago: It will give all incidents updated before 10 years form current date.

Filter: sys_updated_onRELATIVELT@year@ago@10

 

relative before 10 years from now: It will give incidents updated before 10 years from the current date. 

Filter: sys_updated_onRELATIVELT@year@ahead@10

 

Thanks,

Sagar Pagar

The world works with ServiceNow

Hi,

Thanks @Sagar Pagar 

So, from what I understand, if there are records that were last updated 15 years ago and 10 years ago

The ago filter checks for all these and archives all these 

And from now only checks for those 10 years and leaves 15 years ago ones behind
Is this correct?

Hi @Demo24,

Yes. agreed with you.

 

Thanks,

Sagar Pagar

The world works with ServiceNow