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
91
votes
8answers
26k 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 ...
46
votes
11answers
33k 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 ...
34
votes
2answers
13k 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, ...
18
votes
2answers
4k 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. ...
9
votes
1answer
706 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 ...
3
votes
3answers
2k views

Determine the pod/instance API endpoint of a Salesforce org?

Say I want to retrieve my API endpoint from a Visualforce Page or a Force.com Site, I can try: Url.getSalesforceBaseUrl().toExternalForm(); But the return value is all over the place. It could be ...
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 ...
5
votes
2answers
1k 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 ...
9
votes
1answer
2k 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 ...
8
votes
4answers
2k 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 ...
12
votes
3answers
382 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 ...
10
votes
2answers
12k 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 ...
13
votes
1answer
554 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 ...
7
votes
2answers
7k 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 ...
4
votes
3answers
492 views

Sandbox session gets confused across browser tabs

I have noticed that if I login to a test.salesforce.com sandbox in one Safari tab, and a different test.salesforce.com sandbox in a second tab, that the login sessions can become confused. One tab ...
2
votes
3answers
6k views

Can we deploy PROFILES alone from one sandbox to another?

Can we deploy only profiles from one sandbox to another? Thanks
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 ...
5
votes
2answers
264 views

Attempting official deploy process with single sandbox may reset/remove all existing work?

I've been working on a small consulting project for ~3 mo (100 hours), mostly Apex with a little configuration. I used a sandbox per recommendation. I started to work on the deploy process today and ...
4
votes
3answers
7k views

Salesforce Sandbox Security Token

I cannot reset my Security Token in Sandbox Org. The "Reset My Security Token" button in the My Settings, Personal tab doesn't appear. Any idea?
3
votes
3answers
305 views

Possible approaches to dedicated training environments?

I am interested to hear possible approaches on setting up a dedicated training environment for users. Part of the business has a high turn over of staff and need a stable, close to live environment ...
3
votes
1answer
833 views

Copy Opportunities with LineItems with TalenD

One way to solve the datamigration challenge in Salesforce seems to be the usage of ETL-Tools. Looking around for a free and powerful approach, I found here at SFSE some recommendations of TalenD - It ...
2
votes
2answers
2k views

Plain and empty Sandbox

We want to have a plain empty sandbox - one without any configuration metadata or data from Production. Is it possible to have such a sandbox? Please advise.
1
vote
3answers
4k views

How to move all data and metadata from Sandbox to Developer Edition?

How to move all org data (Objects, records, Apex classes, VF pages, Triggers, Validation Rules) from Sandbox to Developer Edition?
0
votes
3answers
668 views

refresh a production org to a starting point

I have a production org to which i deployed metadata from dev sandbox using Ant. There is no connection between dev sandbox and production. How can i refresh the production org to a starting point ?
18
votes
3answers
4k 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 "...
27
votes
5answers
9k 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 ...
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 ...
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 ...
5
votes
1answer
7k views

How to query the data that has been modified in last 30 MINUTES

we have Order__c as custom object. we are trying to extract the past 30 minutes record. where LastModifiedDate=TODAY and HOUR_IN_DAY(LastModifiedDate) > 0.5 is not working We tried SOQL : ...
4
votes
4answers
2k views

Differentiate Production/Sandbox Instance?

I know it is fairly straightforward in Apex to determine if the Salesforce instance is production org or a Sandbox org, but I wonder if the same is possible via formula? I have also read What are ...
3
votes
4answers
10k views

Copy Data from Production to Sandbox after sandbox refresh [duplicate]

We have a developer sandbox which is refreshed quite frequently. There are some some seed objects that need to have data so that the sandbox becomes usable. I am trying to develop a script which will ...
2
votes
2answers
772 views

Is there a way to query sandbox configuration info? (e.g. Location, sandbox name, etc)

I would like to be able to query the Sandbox configuration data. For example, if you go to the "Sandboxes" link in the setup of your production org, I want to be able to query that info (Name, Type, ...
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" ...
10
votes
1answer
456 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 ...
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 ...
7
votes
1answer
33k 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 ...
6
votes
1answer
3k views

Creating a Developer Copy of another Sandbox

What is the best approach to creating a Developer Copy sandbox of another sandbox ? I've read that you essentially need to deploy everything from one sandbox to the other. My question is how do I ...
6
votes
2answers
14k views

How is a Salesforce Sandbox licensed?

What is pricing model when you want an extra Sandbox from Salesforce? Is it like how you purchase Salesforce production instance, i.e., $/month/user? Or is it a flat rate, i.e, X dollars for 1 ...
4
votes
1answer
3k views

Push change set from sandbox to sandbox

Can I connect two of my sandboxes and push change sets from one to the other?
3
votes
1answer
2k views

How do i Find and Delete Duplicates in Custom Object using SOQL or APEX

We are novice to SFDC. We have Custom object for Orders. that is Order__c. We tried following SOQL using Workbench SELECT colname,count(id) num FROM Order__c group by colname having count(colname ...
3
votes
1answer
736 views

Retrieving sandbox details

Which API can I use to find out the last refresh date of the current sandbox? Does Salesforce have an API available to find out the sandbox details? I would like to find out the last refresh date, ...
3
votes
2answers
5k views

Sending data from PHP to Salesforce using CURL

I have to send the data from PHP to Salesforce and save the data in Salesforce. I have tried with the following code: $curlurl = "https://www.mysalesforce.com/services/apexrest/Contact?email={$...
2
votes
3answers
297 views

Deployment from Production(Enterprise) to Production(Enterprise)..?

Hi i have one enterprise org where there is a lot of work including VF pages,triggers,reports etc...I want to deploy all the work to a new Production(Enterprise) instance..How can i achieve this...I ...
8
votes
3answers
6k 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 ...
7
votes
0answers
1k 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 "...
6
votes
4answers
7k views

How to identify the type of Sandbox in Apex?

I need to check the type of Sandbox to verify whether it is one of the following Partial Copy Sandbox Full Sandbox Developer Sandbox The Organization object helps in identifying if its a sandbox as ...
5
votes
1answer
2k views

What is the Best Practice for the right Training Environment?

As we all know, good user trainings are crucial to ensure a high adoption rate and a successful CRM strategy. I'm hired quite regularly by customers to provide enduser trainings. Always there is the ...
4
votes
1answer
483 views

Disabling TLS 1.0 in sandbox? [duplicate]

Critical Update option shows Disabling older TLS Option in Production Org but not in Sandbox Org?What could be the reason? Does it mean Sandbox has already disabled TLS 1.0 it as mentioned here?
3
votes
1answer
208 views

Oauth2 redirect_uri_mismatch except that it matches exactly

So I created a new Connected App in Salesforce - in a sandbox environment. In the app's settings I enabled OAuth with Full access and set the Callback URI to https://test.mydomain.com/tools/...
3
votes
3answers
7k views

Sandbox to Sandbox copy, Best Way

We have an requirement where we to create copy our existing sandbox as new team would be using that soon. We don't want to give them current production refresh copy (Which would have been easier, as ...