A sandbox refresh replaces your NetSuite sandbox with a copy of production, so any customizations that existed only in the sandbox are lost. Salto keeps a version of your sandbox after every fetch and deployment, so you can bring them back in three steps:
Full fetch before the refresh.
Update credentials and run a full fetch after the refresh.
Restore only the customizations you need.
1. Before the refresh
Run a full fetch on your sandbox environment shortly before the refresh. It can be helpful to edit the fetch details and label it ‘Before refresh' so it will be easy to find it later on. The restore can only bring back what Salto saw in that fetch.
2. After the refresh
Use your existing sandbox environment in Salto. Don't create a new one, because you'll need its Change Log for the restore.
A refresh invalidates the sandbox's access tokens. Create new ones and update your credentials in Salto.
Run a full fetch, so Salto knows what's in the refreshed sandbox.
3. Restore only what you need
In the Change Log, start a restore from the fetch or deployment just before the refresh (see Restoring an environment to a previous version).
The restore lists every difference between that version and the refreshed sandbox, including everything that came over from production. Don't restore all of it:
Select the additions and modifications of your own sandbox customizations, such as scripts, workflows, custom fields and forms.
Leave out deletions. These are usually elements that came from production, and NetSuite doesn't allow most of them to be removed.
Leave out bundle elements. Install the bundle in the sandbox from NetSuite instead.
If you have a lot to restore, do it in a few smaller batches. It makes any errors easier to review.
