Questions tagged [sandbox]

A sandbox is a copy of your production environment that can be used for various purposes such as development, testing, or training. The three types of sandboxes are developer, configuration-only (config-only), and full (full-copy). The login page for sandboxes is https://test.salesforce.com/.

Filter by
Sorted by
Tagged with
102
votes
9answers
37k views

Can we determine if the Salesforce instance is production org or a Sandbox org?

I am looking for the most efficient way of identifying the type of org (Production or Sandbox) via Apex code. URL scraping is not useful to me, since I'd like to get this information inside a trigger ...
48
votes
11answers
39k views

Copy Production data to Developer Sandbox

I'm on Enterprise Edition and only have a developer sandbox... (I really miss my Full Copy sandbox and UE). I need to do some tests against "real" data. I have a strict rule of not testing or ...
35
votes
2answers
15k views

Post Sandbox Refresh Steps

What steps should be taken after a sandbox refresh to avoid filling up the sandbox storage, sending emails, or outbound messages? I'm looking for steps to take such as disable scheduled Apex jobs, ...
32
votes
3answers
10k views

Recover a sandbox after accidental refresh/deletion

I have refreshed my sandbox accidentally. Is there a way to get back the old copy of my sandbox? I did not use clear case or svn.
27
votes
5answers
11k views

"Could not run tests on class ..."

Today, I am writing test code in my Sandbox, and until 15 minutes ago, my test execution was working. Now, all of a sudden, my tests stopped working. I can't run even a single test! Test execution ...
19
votes
3answers
5k views

Are sandboxes slower than production Orgs?

I've noticed quite often that sandbox instances are showing a slower performance during Metadata API and Tooling API access. Today this happened on cs14. The force.com IDE froze completely during a "...
19
votes
2answers
5k views

How to get the current sandbox-name programmatically (dynamically) via APEX?

Now after all mere subscribers has per default a lot of sandboxes available, I need a way to programmatically (dynamically) get the sandbox-name of the sandbox org where the actual code is executed. ...
17
votes
2answers
5k views

Sandstorm sandbox?

Fiddling around the sandbox details I stumbled upon an unknown option. It reads: Sandbox Options Is a Sandstorm copy? Googling around it says it has something to do with Wave analytics but couldn'...
13
votes
4answers
4k views

Why is migrating changes between multiple orgs such a pain

So I've developed a couple of Salesforce / Force.com projects but the one thing I really hate is migrating changes between orgs. Maybe I'm doing it wrong, or I'm missing tools but something just ...
13
votes
3answers
3k views

Unable to insert new records into "hierarchy" type Custom Setting

**Update Oct 23 2013: The fix to Known Issue W-1890544 is now being rolled out to sandboxes. I just verified by creating a brand new sandbox and I'm now able to insert new records into "Hierarchy" ...
13
votes
4answers
30k views

Accessing a Salesforce sandbox through API

can someone with salesforce API integration help me understand the requirements to access a client's Sandbox? I need to access the sandbox and pull data into our MySQL server. I hired a programmer ...
13
votes
2answers
6k views

Run Script After Sandbox Creation and Refresh

With the Spring '16 release, there is new functionality where we can set a script to run after refreshing a sandbox. In the documentation it gives an example where it prints the three context ...
13
votes
1answer
593 views

Install Managed Package Into Sandbox Fails on All Lightning Component Bundles

I have developed an app for the Salesforce platform and have successfully created a beta managed package ready for testing on one of our sandboxes. however when I try to install the package on the ...
12
votes
5answers
7k views

What are the differences between Configuration and Developer Sandboxes?

The Sandbox Documentation describes Configuration and Developer sandboxes, but it's hard to tell what's actually different about them: Configuration Only Sandbox Configuration-only sandboxes copy all ...
12
votes
3answers
387 views

Metadata+ToolingAPI access on CS14 (and other pods) extremly slow & No Support?

We are working on CS14. Starting last Friday we are suffering form a extreme performance loss on CS14. Loading and Saving Metadata via Tooling/Metadata-API is very slow. Operations which usually ...
11
votes
3answers
4k views

Can I use SalesforceDX to load data into sandboxes?

Can I use Salesforce DX and the Salesforce CLI to load data (from CSV or JSON files) into sandboxes (not scratch orgs)?
11
votes
2answers
2k views

Why not use unmanaged packages to migrate metadata to production?

Recently we've been developing an unmanaged package to bundle all our ongoing client metadata in one unit. This is useful when attempting to move stuff between sandboxes before the package goes to ...
10
votes
2answers
14k views

How long should it take to refresh a Developer Sandbox?

I refreshed a Developer Sandbox, and almost 24 hours it is still "pending". Is this normal? Are there any actions I can take to speed up the process? When I created the Sandbox it took barely more ...
10
votes
1answer
11k views

Send test email from sandbox

I'm very new to Salesforce. However, I was asked to make some changes to an approval process. This has email sent at certain times during the process. I have a process change made that I want to test,...
10
votes
1answer
3k views

Maximum CPU time limit allowed to be exceeded in Sandbox

I recently deployed some code to a production org after significant bulk testing in my Sandbox. There were no problems so assumed it was ok to promote. After promotion however, certain processes ...
10
votes
1answer
1k views

Is it possible to clone a Sandbox?

I have a sandbox in which I've done a bunch of development work, and now I'd like to duplicate/clone it. Is there a way to do that directly, or do I have to refresh from production and then deploy ...
10
votes
2answers
7k views

How to use new SandboxPostCopy?

The new Sandbox Post Copy tasks are a great addition and I'm eager to try them but until the release to Production starts on Feb. 6, it seems impossible to experiment with the behavior. I ...
10
votes
2answers
2k views

Unable to deploy code to Sandbox as installed Managed Package test methods are failing

I am using ant tool to deploy code to Sandbox which has Managed package test methods failures. Build error shows the validation rule message. Build is executed by Jenkins schedule job, so turning on ...
10
votes
2answers
2k views

Deploying From Sandbox (Enterprise) - loss of permissions, field security, etc

I have been reading up on this particular area of concern and from what I'm reading, it sounds like the solution I've been creating for the past two weeks is going to be a nuisance to deploy from ...
10
votes
1answer
467 views

Package installs with lightning components failing in summer 2017 orgs

We recently encountered an issue with our Managed package in Summer '17 Sandboxes, not being able to install it in them and I recently read some posts asking how to downgrade Sanboxes or why the ...
9
votes
4answers
4k views

Can I choose which records are copied in a Partial Copy sandbox?

We have a partial copy sandbox that we're using for development and testing. This is really helpful as some of our applications internally store Salesforce id's. However, there is a limitation with ...
9
votes
2answers
7k views

Ids in Salesforce - Same across environments?

Let us say, I have a recordType for an object in Production. Assuming RecordTypeId is a12345678, if I "refresh" a sandbox (Not a full copy sandbox), the recordType will be created in the refreshed ...
9
votes
2answers
4k views

Unable to refresh Sandboxes

Hi, I am a System Administrator in our application. I am about to refresh a sandbox but the Refresh link does not appear. The type of sandboxes are developer and full. Both sandboxes 'next refresh ...
9
votes
1answer
895 views

Does enabling Dev Hub disable anything else? Can I turn off Dev Hub?

I am looking at that Dev Hub feature and how well scratch org development mirrors what I do currently in Sandboxes and metadata API deployments. It'd be nice to pilot the feature, but if it is ...
9
votes
1answer
804 views

Can the production org id corresponding to a sandbox org id be found via Apex?

The use case is that we have added additional licensing parameters to the LMA License object that our managed package reads from the LMA via a @RestResource site added to the LMA org. This works ...
9
votes
2answers
8k views

Organization-wide email address - Use unverified email in sandbox

I have created a workflow email alert to be sent from an organization wide email address which is verified only in the prod org. I now need to create the same in dev sandbox and commit to git (We use ...
8
votes
4answers
6k views

SFDX: Is it possible to push to a sandbox from VS Code?

I have successfully connected VS Code and pushed to several different SF environments, including Trailhead, Developer, and Production. But I can't figure out how to push to a sandbox. It looks like ...
8
votes
3answers
298 views

Is it possible to get ALL the changes in a sandbox? and how?

Is it possible to get an admin/audit/other report on ALL changes that were made to a sandbox? Assuming more than one person is working on a certain SB, I want to know what changes have been made and/...
8
votes
2answers
3k views

How can we delete/remove all the customization from production environment

What is the best way to remove all the customization apex classes / pages from production. One way I know is using eclipse, delete the classes in sandbox and deploy the changes in productions. But its ...
8
votes
3answers
7k views

How do I bridge a platform version difference between sandbox and production?

I was tasked with adding an app from the app exchange. As part of that process, I need to create a new trigger in the sandbox, and then move that to production via a change set. However, when I try ...
8
votes
3answers
2k views

Datamigration Salesforce to Salesforce with TalenD - Best Practice for Self-Referreces

Assuming metadata is already identical, the data-transfer of complex models can still take hours or even days of manual work. Fortunately there are free tools like TalenD which can help to automate ...
8
votes
2answers
11k views

User licences on Sandbox

I've not had a chance to look around a production org yet, hence these questions. Every time a new sandbox is created, are we buying a new set of licences? I understand from this answer that its a ...
8
votes
2answers
3k views

error deploying entitlement process via ant migration tool and changeset

I'm trying to deploy a new version of an existing entitlement process from one dev sandbox to a full copy sandbox using the ant migration tool. <Package> <types> <members&...
7
votes
2answers
9k views

Assigning Managed Package Licenses in a Sandbox

In our production organization, we can access the following page either through a related list on the User object (Manage Licenses) or through a link in Installed Packages next to the package. We ...
7
votes
3answers
2k views

Sandbox verification emails

Time and time again another user creates or refreshes a sandbox and I cannot log into it. I use my credentials from production, but a verification code is sent to the "myemail=gmail.com@example.com" ...
7
votes
1answer
436 views

How do I stay logged into Multiple Sandboxes?

How do I stay logged into Multiple Sandboxes when they're all on the same pod? I have just started at new position and went through and deleted a number of sandboxes that were years old. Now I am ...
7
votes
2answers
741 views

How do you prevent outbound messages from sandbox orgs as a 3rd party developer?

I have an app that sends outbound messages via workflow rules. When a customer makes a copy of their org as a sandbox I start getting outbound messages for that org as well. Is there a best practice ...
7
votes
1answer
42k views

How to login into a sandbox from Sandboxes page in Production org?

We are able to login as a system administrator into the production org of one of our client. The client has sent his own credentials which he used to login. Now we are planning to use the Dev sandbox ...
7
votes
1answer
742 views

SandboxPostCopy and Organization.IsSandbox

Could you tell me what would be the value of IsSandbox if I specify the following class during sandbox creation? Will it be 'true' or 'fasle'? global class HelloWorld implements SandboxPostCopy { ...
7
votes
2answers
5k views

Manage Package upgrade failure - couldn't retrieve the design time component information for component X

I released a Managed Package version 1.1 and installed on both Developer Org D1 and Sandbox Org S1. Later I added a new Lightning Component and Lightning Record Page to the Package and released a ...
7
votes
1answer
2k views

Different user IDs across production and sandboxes - how to make them the same for every user?

Normally users across production and sandboxes have the same unique user ID, given that you created the production user first, and then refreshed the sandbox. We have the case that we created users ...
7
votes
0answers
2k views

Email Deliverability - how to change it programatically?

In all new sandboxes "Email Deliverability" is set to "System Email Only". I am writing a SandboxPostCopy class to run for all new sandboxes, and want to use that class to change deliverability to "...
7
votes
1answer
1k views

Developer Sandbox Refresh Status Stopped

UPDATE: Dev sandbox refresh is completed after 5 hour in stopped phase. But I'd still like to now what causes this. Today I tried to refresh a developer sandbox in our org. First it was in queue as ...
6
votes
5answers
2k views

Background color scheme for distinguishing between environments (Sandbox vs Production)

Can we brand Staging environment(Sandbox) differently than production environment because it was causing confusion with the end users not knowing which they were logging into. With more users moving ...
6
votes
2answers
14k views

Preventing sandbox from sending Workflow emails to "Additional Emails"

When you create a sandbox in Salesforce.com, the system is appending the sandbox name to every single email, except the "Additional Emails". In our company, since we need to notify some external ...

1
2 3 4 5
13