how to restore multiple archived incidents

chandana16
Tera Contributor

Hello All,

 

I want to restore some 15 k incidents from archive table.

can you please give a suggestions.

Thank you.

14 REPLIES 14

chandana16
Tera Contributor

@karan : Thank you so much for this detailed steps. I will try this and update you over here

@karan

 archiveGR.addEncodedQuery('from_table=incident');

in the above line  from_table=incident indicates ?
can we replace with our incident number like 'number=INC000xxxx';

@chandana16  - no, you need to build the query on sys_archive_log table, if you want to test it for a single record, simpy use:

new GlideArchiveRestore().restore(<sysID of archive table record>);

Thanks for the reply. Tried to test for single record but got a bad response (proxy error ) 😞

@chandana16  - please share your script