Questions tagged [sandbox-refresh]

Questions relating to the way Sandboxes can be populated with metadata (and optionally data) from a production org or other sandboxes.

Filter by
Sorted by
Tagged with
32
votes
3answers
8k 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.
14
votes
1answer
1k views

What is the purpose of “ON DEMAND REFRESH” in Salesforce Sandbox Refresh Screen

I had a requirement of creating one sandbox today for development. I went to my production org and created a new Developer Sandbox with 200MB storage limit. When I clicked on create, the sandbox was ...
11
votes
2answers
3k 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 ...
9
votes
2answers
10k 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 ...
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 ...
8
votes
2answers
4k 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 ...
7
votes
1answer
11k views

What is the maximum time taken for the refresh of a full-copy sandbox?

I have initiated the refresh of a full-copy sandbox. I enabled Chatter Data copy, and 180 days of Object History to copy before starting the full-copy refresh. Here are the storage usage details in ...
7
votes
3answers
778 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
569 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
1answer
690 views

Best Practice: Refresh Cadence

Background We have a fairly straightforward org structure: Our Stage environment is a Full Sandbox. All sandboxes downstream of that are Developer Pro. We added the SubDev sandboxes very recently ...
7
votes
3answers
596 views

Can I connect to a sandbox using JWT Flow and Prod connect app?

I'm trying to connect to a sandbox using the sfdx cli and the JWT flow through force:auth:jwt:grant. According to this Salesforce DX doc, we can use the same connected app information from Production ...
7
votes
1answer
969 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
1answer
97 views

Apex callout to same org in SandboxPostCopy

Use case During sandbox creation or refresh (Enterprise, not ISV use case), with Apex class implementing SandboxPostCopy, invoke MetadataAPI to delete stuff that shouldn't be in the sandbox (like ...
6
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 "...
5
votes
2answers
250 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 ...
5
votes
1answer
4k views

Refreshing full sandbox

I want to know if i refresh full sandbox does organisation Id changes? Iam trying to refresh Full sandbox but before refreshing i just want to know whether org id is changed or not because marketo is ...
5
votes
2answers
181 views

What's the cutoff point for data when I refresh a Full or Partial copy Sandbox?

When I refresh my Full Copy Sandbox, I press "refresh" and it takes a while to build the refresh. Users are doing things to the database all the time. So some records change during the build of the ...
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 ...
4
votes
4answers
1k views

Sandbox refresh

Why do we need to refresh Sandbox before each Release? I read, previous Release(no preview), available if you after a specific date and latest Release(get the preview) if we request for refresh before ...
4
votes
1answer
393 views

Does Salesforce auto-replace org id references in apex code in sandboxes?

I may be taking crazy pills, but it seems like SFDC is doing a find and replace on any strings with a production org id and replacing them with the sandbox org id when creating a sandbox. I can't seem ...
4
votes
1answer
343 views

SandboxPostCopy Functional Failure

Purpose: Grab all users with custom permission "Sandbox_Administrator" on sandbox creation and update their Profile id to "System Administrator". When Code is ran a notification of successful run is ...
4
votes
2answers
579 views

Are Scheduled Jobs copied after Sandbox Refresh?

Are Scheduled Jobs copied after Sandbox Refresh? I did a refresh of a full copy sandbox and looked at the scheduled jobs but not all of them are there. Anyone has any ideas of the criteria used to ...
4
votes
3answers
1k views

Is it possible to just refresh records in a Partial Data Sandbox?

We recently purchased a partial data sandbox for a client and it works as expect which is great. One issue thats come up is that the client i actively updating data in production while we work on ...
4
votes
1answer
83 views

How to permanently get rid of sandbox new/refresh email-address pollution with “@example.com”

When you create/refresh a Sandbox, all (but the refreshing) users email addresses get crippled with a nice "example.com". Using security codes via email, this basically breaks the possibility for ...
4
votes
2answers
1k views

Automating sandbox post-refresh steps

We are doing monthly refreshes on sandboxes which is causing us to manually do certain things. Deactivate some users and add developer user for testing in sandbox. Change webservice connection ...
4
votes
0answers
201 views

Managing certificates programmatically in Salesforce Org (after sandbox creation/refresh)

I was trying to find some information on feasibility of creating and deleting self-signed certificates in Salesforce Org programmatically, which could be incorporated into post sandbox creation/...
4
votes
0answers
159 views

Sandbox Refresh/Create and Robots.txt

Production has a robots.txt file setup and associate to the public facing site. Now if a sandbox is refreshed or created is the live robots.txt associated to the site in the sandbox or is the default ...
4
votes
1answer
145 views

Partial Sandbox data segementation?

Someone knows the logic behind the dataload of a Partial Sandbox? In Salesforce documentation there is only something about the creation of the sandbox template, but not about how Salesforce chooses ...
3
votes
1answer
385 views

Salesforce Sandbox as a backup

Can a Full Sandbox be used as a backup to your production environment? When you start a copy, if changes are still being made in your production environment are these changes also being copied into ...
3
votes
2answers
507 views

Structuring and using the sandboxes

I'm fairly new to Salesforce (till now I was using Dev org) and doing my first project. Would like any advice on structuring and using the sandboxes. I'm using a NonProfit Starter pack which provide ...
3
votes
2answers
2k views

Backup of Sandbox before refresh

I am new to salesforce.Recently i have created an application in salesforce Preprod instance which includes both standard and custom objects and created custom fields and some validation rules too. ...
3
votes
2answers
166 views

Hardcoded org ID in workflow rule changed on sandbox refresh?

I came across what seems like a very odd behavior today: There is a legacy workflow rule in my org that hardcodes in the production org ID in order to only run in the production environment. (The ...
3
votes
2answers
427 views

What Happens to Email Id and Username When Refreshing a Partial Copy Sandbox?

I wanted to know what will happen to my email id after refreshing my partial copy sandbox. I also want to know if usernames will be same as production or not?
3
votes
1answer
1k views

Sandbox refresh and manage packages

When we refresh sandbox all the metadata and some data is refreshed and it makes replica /subset of production. I have one managed package installed on my production (its not app exchange app but ...
3
votes
1answer
2k views

Why is my Lightning Domain Not Available?

After performing a Sandbox refresh this afternoon, I continued working on a Lightning app I am building. When I tried to preview the app from Developer Console in my Sandbox I received the following ...
3
votes
0answers
71 views

Why can't my Sandox Refresh Script INSERT Accounts?

I finally got a sandbox refresh script written, tested, and deployed to prod yesterday. But when I actually a sandbox and have it run on the sandbox copy, I don't actually get the records it's ...
3
votes
1answer
685 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, ...
2
votes
3answers
3k views

Sandbox Refresh button disappeared

Since two weeks, sandbox 'Refresh' button has disappeared in all the 3 instances we have. Does it have anything to do with the Summer 16 release? I checked with my friends working in different ...
2
votes
3answers
100 views

Obtaining sandbox refresh date

I've investigated and found two articles with no answer for this question: Retrieving sandbox details Reference date /time when Sandbox is refreshed through API It's been a while, so maybe something ...
2
votes
1answer
1k views

Automating Sandbox Refresh

I have tried looking in the SFDC documentation, but I haven't really found anything that is useful. Does anyone have any experience automating the refresh of sandboxes? One approach I was thinking ...
2
votes
2answers
31 views

Is it possible to create a Dev Org from Full sandbox?

I would like to create a Developer Edition Org from Full. I haven't been able to find anything online for this, maybe I'm just bad at searching. Is it possible? Is a specific license needed?
2
votes
1answer
64 views

Sandbox refresh regressed version

Our Sandbox was upgraded to Spring 2016 release in Jan 2016.Our production was still on Winter 2016.We refreshed our sandbox , which took our sandbox to winter 2016 as our prod was still on winter ...
2
votes
1answer
685 views

Sandbox refresh creating inaccessible scheduled batch job

I have a batch job that reschedules itself on completion so that it can essentially run indefinitely. Within its finish method it calls system.scheduleBatch to start itself again after a defined ...
2
votes
1answer
559 views

Custom settings and NamedCredentials update after sandbox refresh

I have some Custom Settings and Named credentials configured since I make call outs to external systems. But every time I refresh any of my sandbox, I have to manually update the Custom Settings and ...
2
votes
1answer
278 views

Which object's records get copied over when creating a sandbox?

I've created a new sandbox and wanted to know which objects get their records copied over automatically by Salesforce whenever I create a sandbox?
2
votes
1answer
2k views

Cannot login through https://test.salesforce to the recently refreshed sandbox?

I have deployed mydomain in the production. But after refreshed the sandbox I can't login through https://test.saelsforce.com. And Prevent login from https://test.salesforce.com also unchecked. But I ...
2
votes
3answers
193 views

How to automate backup of records before sandbox refresh?

I want to automate the records backup process from Standard and custom objects before initiating sandbox refresh & reload it again once the refresh completed. kindly let me know the ways to ...
2
votes
1answer
226 views

Refresh-frequency-calculation's start date for a full sandbox

This will take me 29 days to test, hence asking the following question. Context: You can refresh a Full sandbox every 29 days. Question: Will I be able to see the refresh hyperlink for a full ...
2
votes
1answer
28 views

Why Apex Exceptions Email Settings are not copied to Sandbox upon sandbox refresh?

Why Apex Exceptions Email Settings are not copied to Sandbox upon sandbox refresh? We need to manually setup Apex Exceptions Email Settings every time after sandbox refresh. Is there any way to make ...
2
votes
1answer
162 views

What happens to Email Addresses in Email Service of Full Sandbox after sandbox is refreshed from production and how to retain them

We have 2 Email Services each having separate Email Addresses created in Full Copy Sandbox. As Email Addresses are to be manually created(and not deployable) we created Email Addresses for these 2 ...