how to restore multiple archived incidents
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2023 12:26 AM
Hello All,
I want to restore some 15 k incidents from archive table.
can you please give a suggestions.
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2023 02:10 AM
@karan : Thank you so much for this detailed steps. I will try this and update you over here
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2023 03:01 AM
@karan :
archiveGR.addEncodedQuery('from_table=incident');
in the above line from_table=incident indicates ?
can we replace with our incident number like 'number=INC000xxxx';
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2023 03:11 AM
@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>);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2023 03:33 AM
Thanks for the reply. Tried to test for single record but got a bad response (proxy error ) 😞
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2023 03:37 AM
@chandana16 - please share your script