Skip to main content

Sandbox Management

Manage your test environment and refresh from production.


What is a Sandbox?

A Sandbox is a copy of your production account for testing:

SANDBOX VS PRODUCTION
===============================================================================

PRODUCTION SANDBOX
├── Real business data ├── Copy of production data
├── Real transactions ├── Test transactions
├── Affects your business ├── No business impact
├── Updates last ├── Updates first (weeks ahead)
└── Don't test here! └── TEST EVERYTHING HERE!

When to Use Sandbox

Use Sandbox ForDon't Use Sandbox For
Testing new featuresReal business transactions
Script developmentTraining with outdated data
Testing importsTesting after data is stale
Release preparationNothing - always use it!
Integration testing
User training (refresh first)

Accessing Your Sandbox

HOW TO ACCESS SANDBOX
===============================================================================

Method 1: Role Switch
├── Log into NetSuite
├── Click your name (top right)
├── Click "Change Role"
├── Select a Sandbox role
└── You're now in Sandbox

Method 2: Direct URL
├── Your sandbox has a different URL
├── Usually: system.sandbox.netsuite.com
├── Or: [accountid]-sb1.app.netsuite.com
└── Bookmark it for easy access

Method 3: From Production
├── Setup > Company > Setup Tasks
├── Click "Access Your Sandbox"

Refreshing Your Sandbox

What is a Refresh?

A refresh copies recent production data to your sandbox:

REFRESH PROCESS
===============================================================================

BEFORE REFRESH AFTER REFRESH
Sandbox has old data Sandbox has recent production data
├── Customers from 6 months ago ├── Current customers
├── Old transactions ├── Recent transactions
├── Outdated customizations ├── Current customizations
└── Stale test data └── Fresh for testing

IMPORTANT: Refresh OVERWRITES everything in Sandbox!

When to Refresh

Refresh WhenWhy
Before major testingNeed current data
Before release testingTest with real scenarios
Data is very outdatedMore realistic testing
After major production changesSync customizations
For user trainingCurrent data for training

Step-by-Step: Refresh Sandbox

HOW TO REFRESH SANDBOX
===============================================================================

Step 1: Plan the refresh
├── Notify anyone using Sandbox
├── Export any Sandbox-only customizations you want to keep
├── Choose refresh timing (takes several hours)
└── Production account remains unaffected

Step 2: Navigate to refresh
Setup > Company > Setup Tasks > Refresh Sandbox

Step 3: Select refresh options
┌─────────────────────────────────────────────────────────────────┐
│ Sandbox Refresh Options │
├─────────────────────────────────────────────────────────────────┤
│ │
│ □ Include Transactions │
│ (Sales orders, invoices, etc.) │
│ │
│ □ Include File Cabinet │
│ (Uploaded files and documents) │
│ │
│ □ Truncate Transactions │
│ (Only recent X months of transactions) │
│ │
│ Truncation Period: [6 months ▼] │
│ │
└─────────────────────────────────────────────────────────────────┘

Step 4: Confirm and start
├── Review what will be copied
├── Acknowledge data will be overwritten
├── Click "Start Refresh"
└── Wait for completion (hours, not minutes)

Step 5: Verify after refresh
├── Log into Sandbox
├── Check data looks current
├── Verify customizations copied
└── Test basic functions

Refresh Options Explained

OptionWhat It DoesRecommendation
Include TransactionsCopies orders, invoices, payments✓ Usually yes (for realistic testing)
Include File CabinetCopies uploaded filesDepends (can slow refresh)
Truncate TransactionsOnly copy X months of data✓ Yes (faster, cleaner)

Truncation Period

PeriodBest For
3 monthsFast refresh, recent data only
6 monthsGood balance (recommended)
12 monthsMore history, slower refresh
AllEverything, slowest refresh

What Gets Refreshed

WHAT COPIES FROM PRODUCTION TO SANDBOX
===============================================================================

ALWAYS COPIED:
├── All records (customers, vendors, items, employees)
├── Customizations (fields, forms, records, scripts)
├── Roles and permissions
├── Saved searches
├── Workflows
├── User accounts
└── Company settings

OPTIONAL (based on settings):
├── Transactions (if selected)
├── File Cabinet (if selected)
└── Email history (usually not)

NEVER COPIED:
├── Sandbox-only customizations (overwritten!)
├── Sandbox-only test data
├── Email sending capability (blocked in sandbox)
└── Integration credentials (security)

Important Warnings

Before Refresh

⚠️ PRE-REFRESH CHECKLIST
===============================================================================

□ Export Sandbox-only customizations you want to keep
└── Use SuiteBundler to bundle them

□ Notify Sandbox users
└── Anyone testing will lose their work

□ Document any test data you need to recreate
└── Test transactions will be lost

□ Check no one is mid-test
└── Active work will be lost

□ Verify refresh timing
└── Don't start before a critical testing period

After Refresh

POST-REFRESH TASKS
===============================================================================

□ Verify key data is present
└── Spot-check customers, items, transactions

□ Check customizations work
└── Test critical scripts and workflows

□ Re-import Sandbox-only items
└── Restore any exported bundles

□ Reset test scenarios
└── Create any specific test data needed

□ Verify user access
└── Confirm test users can log in

Sandbox Limitations

LimitationWhy
No real emails sentPrevents test emails to real customers
No real paymentsPrevents test charges
Data becomes staleNeed to refresh periodically
Integration creds resetSecurity protection
Slower performanceLower priority than production

Multiple Sandboxes

Some accounts have multiple sandboxes:

MULTIPLE SANDBOX SCENARIOS
===============================================================================

Account Type Sandboxes Available
───────────────────────────────────────────
Standard 1 Sandbox
Premium 2+ Sandboxes

Use Cases:
├── Sandbox 1: Development (frequent refreshes)
├── Sandbox 2: UAT/Testing (stable for testing cycles)
└── Sandbox 3: Training (refresh before training sessions)

Quick Reference

I want to...Go to
Access SandboxChange Role > Select Sandbox role
Refresh SandboxSetup > Company > Setup Tasks > Refresh Sandbox
Check refresh statusSetup > Company > View Sandbox Status
Export customizationsCustomization > SuiteBundler > Bundle Builder

Best Practices

DoDon't
Refresh before major testingTest on stale data
Notify users before refreshRefresh without warning
Export unique customizationsLose Sandbox-only work
Truncate transactionsCopy all history (slow)
Verify after refreshAssume everything copied

Troubleshooting

IssueCauseSolution
Refresh takes too longToo much dataUse truncation, skip files
Missing transactionsTruncation too aggressiveIncrease truncation period
Scripts not workingIntegration creds missingRe-enter in Sandbox
Can't log inUser account issueCheck roles in Sandbox
Old data still showingRefresh not completeWait, check status

Key Takeaways

  1. Sandbox = safe testing environment
  2. Refresh copies production data to Sandbox
  3. Refresh OVERWRITES everything in Sandbox
  4. Export before refresh - save Sandbox-only work
  5. Use truncation for faster refreshes
  6. Verify after refresh - confirm data copied correctly