<h2>Use the Script Execution History module to roll back a Scripts-Background execution</h2><br/><div style="overflow-x:auto"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta content="text/html; charset=UTF-8" /><meta name="copyright" content="(C) Copyright 2025" /><meta name="DC.rights.owner" content="(C) Copyright 2025" /><meta name="generator" content="DITA-OT" /><meta name="DC.type" content="task" /><meta name="DC.title" content="Use the Script Execution History module to roll back a Scripts-Background execution" /><meta name="abstract" content="You can roll back the database actions of a script executed using the Scripts-Background module." /><meta name="description" content="You can roll back the database actions of a script executed using the Scripts-Background module." /><meta name="DC.relation" scheme="URI" content="../../../administer/table-administration/concept/rollback-delete-recovery.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/general/concept/intro-now-platform-landing.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/general/concept/config-now-platform-core-features.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/general/concept/tables-fields-and-forms.html" /><meta name="DC.creator" content="ServiceNow" /><meta name="DC.date.created" content="2023-08-03" /><meta name="DC.date.modified" content="2024-08-01" /><meta name="DC.format" content="XHTML" /><meta name="DC.identifier" content="background-script-recovery" /><link rel="stylesheet" type="text/css" href="../../../CSS/commonltr.css" /><title>Use the Script Execution History module to roll back a Scripts-Background execution</title></head><body id="background-script-recovery"> <div class="breadcrumb"><a class="link" href="../../../administer/general/concept/intro-now-platform-landing.html" title="As a platform administrator, you have the power of the ServiceNow AI Platform at your fingertips. The ServiceNow AI Platform is an application platform as a service that automates business processes across the enterprise.">Administer the ServiceNow AI Platform</a> > <a class="link" href="../../../administer/general/concept/config-now-platform-core-features.html" title="The ServiceNow AI Platform provides for a multitude of customization options to your applications. Customize your UI, handle user and data administration, and localize your instance for time zones, currencies, and more.">Configure ServiceNow AI Platform Core Features</a> > <a class="link" href="../../../administer/general/concept/tables-fields-and-forms.html" title="ServiceNow provides options for managing your data on the ServiceNow AI Platform.">ServiceNow AI Platform tables and data</a> > </div> <h1 class="title topictitle1" id="ariaid-title1">Use the Script Execution History module to roll back a Scripts-Background execution</h1> <div class="body taskbody"><p class="shortdesc">You can roll back the database actions of a script executed using the Scripts-Background module.</p> <div class="section prereq p">Role required: admin</div> <div class="section context" id="background-script-recovery__context_mf5_kyp_jdb">When you executed the script using the Scripts-Background module, the <span class="ph uicontrol">Record for Rollback?</span> item must have been checked. <p class="p">If you are still in the <span class="ph uicontrol">Scripts-Background</span> module after executing a script, you can use the <span class="ph uicontrol">Script execution history and recovery available here</span> link to get to the <span class="ph uicontrol">Script Execution History</span> form.</p> </div> <ol class="ol steps"><li class="li step"> <span class="ph cmd">Navigate to <span class="ph menucascade"><span class="ph uicontrol">All</span> > <span class="ph uicontrol">Rollback & Recovery</span> > <span class="ph uicontrol">Script Execution History</span></span>.</span> </li><li class="li step"> <span class="ph cmd">Click the script execution to be rolled back.</span> </li><li class="li step"> <span class="ph cmd">In the <span class="ph uicontrol">Related Links</span>, click <span class="ph uicontrol">Rollback Script Execution</span>.</span> </li></ol> </div> <div class="related-links"> <div class="familylinks"> <div class="parentlink"><strong>Parent Topic:</strong> <a class="link" href="../../../administer/table-administration/concept/rollback-delete-recovery.html" title="With rollback contexts, you can roll back certain actions such as a patch upgrade, plugin activation, and background script executions, and you can recover record deletions and all related changes.">Roll back and delete recovery</a></div> </div> </div></body></html></div>