Newer Version Available

This content describes an older version of this product. View Latest

SandboxProcess

Represents the sandbox copy process for a SandboxInfo record.

When you create a SandboxInfo record, a corresponding SandboxProcess record is created. The latest SandboxProcess record for a SandboxInfo record represents the current state of the sandbox.

This object is available in API version 35.0 and later.

Supported SOAP Calls

query(), retrieve(), update()

Supported REST HTTP Methods

GET, PATCH

Fields

Except for RefreshAction, all fields are read only. The read-only fields represent the attributes chosen on SandboxInfo when a copy process was enqueued, or represent the state of the process for monitoring purposes.
Field Details
ActivatedById
Type
ID
Properties
Filter, Group, Nillable, Sort
Description
Represents the user who requested sandbox activation.
ActivatedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
Represents when the sandbox was activated during a refresh.
AutoActivate
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Represents whether the sandbox refresh configured to activate immediately upon completion.
CopyArchivedActivities
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Represents whether archived activity data is copied to the sandbox.
CopyChatter
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Represents whether archived Chatter data is copied to the sandbox.
CopyProgress
Type
int
Properties
Filter, Nillable, Sort
Description
Represents how much of a copy has been completed.
Available for Developer, Developer Pro, and Full sandboxes. Not available for Full or Partial sandboxes using sandbox templates.
Description
Type
string
Properties
Filter, Nillable, Sort
Description
A description of the sandbox, which is useful if you have more than one sandbox.
EndDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
Represents when the sandbox copy process finished.
HistoryDays
Type
int
Properties
Defaulted on create, Filter, Group, Sort
Description
Represents the number of days of object history to be copied in the sandbox.
Valid values:
  • -1, which means all available days
  • 0
  • 10
  • 20
  • 30
  • 60
  • 90
  • 120
  • 150
  • 180
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Do not use.
LicenseType
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The sandbox license type. Valid values:
  • DEVELOPER
  • DEVELOPER_PRO
  • PARTIAL
  • FULL
RefreshAction
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Editing this field activates or discards a sandbox refresh. Valid values:
  • ACTIVATE
  • DISCARD
Restrictions
If all the following are true, you can activate or discard a sandbox refresh by editing the value in this field:
  • This record is the latest SandboxProcess record.
  • The associated sandbox has been refreshed.
  • This record’s Status is Pending Activation.
SandboxInfoId
Type
ID
Properties
Filter, Group, Nillable, Sort
Description
ID of the SandboxInfo being processed (create or refresh).
SandboxName
Type
string
Properties
Create, Filter, Group, idLookup, Unique, Update
Description
Name of the sandbox.
StartDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
Represents when the sandbox copy process started.
Status
Type
string
Properties
Group, Nillable, Sort
Description
Current state of the sandbox copy process.
TemplateId
Type
ID
Properties
Create, Filter, Nillable, Sort, Update
Description
ID of the sandbox template associated with the sandbox for this process. A sandbox template selects which objects to copy in a sandbox.

Usage

SandboxInfo represents a sandbox, and SandboxProcess represents the sandbox copy process, which occurs when you create a sandbox or refresh it. You can also delete a sandbox.

Creating a Sandbox

To enqueue a new sandbox:

  1. Create a SandboxInfo record.
  2. To find the status of a sandbox after it is enqueued, query SandboxProcess for a given SandboxInfoId field to find the latest SandboxProcess record. The value of Completed in Status indicates that the creation process is finished.

Refreshing a Sandbox

To refresh a sandbox:
  1. To start a sandbox refresh, Edit the SandboxInfo record.
  2. To find the status of a sandbox after it is enqueued, query SandboxProcess for a given SandboxInfoId field to find the latest SandboxProcess record. The value of Status indicates the current state of the process.
  3. When the Status field value is Pending Activation, either change the value of the RefreshAction field to ACTIVATE or DISCARD.

Deleting a Sandbox

To delete a sandbox, delete the SandboxInfo record that represents the sandbox, which deletes the sandbox and frees up a license.