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
0 votes
1 answer
30 views

New sandbox creation with partial data from production

I have small multiple projects in my production org. I need to give access to one project code to a developer from another team. I only need him to see objects, classes, vf pages related to one ...
user avatar
0 votes
0 answers
34 views

Create SandboxInfo record using tooling API

I'm working on automating sandbox management. Just wondering if we are able to create/update sandboxinfo record using tooling API. I was able to retrieve list of records from workbench using GET /...
user avatar
0 votes
0 answers
47 views

I turned on Source Tracking and then refreshed my sandbox, but it's still not enabled

I have a dev pro sandbox I use. Source Tracking was not enabled, so I enabled it in the prod org. I read that new and refreshed dev and dev pro sandboxes will now have Source Tracking enabled. So, I ...
user avatar
  • 23
0 votes
1 answer
71 views

Access to a Sandbox

I have a problem with accessing a sandbox, I recently got hired to a new company and other admin has many sandboxes, with classes that I need to upload to production, I don't have access to that ...
user avatar
0 votes
1 answer
65 views

Add "API Enabled" access to Automated User

I want to create Profile Login Api Range during sandbox creation or refresh. I'm using SandboxPostCopy interface and Metadata Service. I saw something similar in this question : sandboxpostcopy ...
user avatar
0 votes
1 answer
31 views

On sandbox refresh/new sandbox is there a way of preventing it from copying over priceBookEntries?

Or at least filtering which pricebooks are brought or OR which pricebook entries are brought over. Because it's blowing up the data limits and causing all sorts of hell in our sandboxes. We'd rather ...
user avatar
  • 464
1 vote
1 answer
40 views

Is there a way to regularly schedule sandbox refreshes to stay on either a non-preview or preview instance?

Are sandbox refreshes randomized as far as the instance it refreshes to? Current Scenario: I'm on a non-preview instance. I would need to refresh after January 8th, 2022, the preview cutoff date. ​...
user avatar
  • 219
0 votes
1 answer
43 views

Partial Copy Sandbox Refresh Question

Had a question regarding refreshing a Partial Copy sandbox, was going through the Salesforce documentation for this and was wondering if the Sandbox already exists, do I need to create a Partial Copy ...
user avatar
2 votes
0 answers
874 views

How to disable MFA after sandbox refresh?

I do have an org with a permission set to force some users to set up MFA. How do I remove the MFA connection for all users after I refresh the sandbox? I can certainly remove them from the permission ...
user avatar
  • 1,966
0 votes
0 answers
64 views

How to freeze client id at sandbox refresh

Hy, I created a new connected app in production. This connected app has been replicated on my test sandbox when I refreshed It from production. So, I have a new client id for Security reasons I think. ...
user avatar
0 votes
1 answer
167 views

Best Practice on Salesforce Refresh Integration

This is a question on best practices for Salesforce orgs that have a lot of data dependent processes (i.e. dev boxes need a lot of standard records inserted post-refresh ). I have this scenario at my ...
user avatar
  • 1,268
3 votes
1 answer
340 views

Why can't I refresh any of my sandboxes

I am unable to refresh any of my sandboxes We have 20 remaining Developer sandboxes We have used 5 Developer, 1 Partial and 1 FullCopy.
user avatar
1 vote
0 answers
409 views

Can we refresh Partial Copy sandbox without any data just like developer sandbox

I have a partial copy sandbox created recently and I see that Salesforce loaded around 1.5GB of data from Production. While refreshing partial copy sandbox, I have created a sandbox template including ...
user avatar
0 votes
1 answer
494 views

Is there any way to preserve Sandbox User passwords and tokens when Sandboxes are refreshed?

We have MANY different microservices which connect to Salesforce. And, we have test versions for most of these, which connect to our STAGING (partial-copy). And, for security, all our integration ...
user avatar
0 votes
2 answers
149 views

How to read data from excel file and update on records present in the org

we have a scenario where we are refreshing the org and have taken up the backup of users, permission set assignment, and their public group. After the refresh, the task is to upload the backup data, ...
user avatar
1 vote
1 answer
106 views

PushTopic record not getting copied over while creating/refreshing the full sandbox

We create trial orgs from environment hub with managed packages and related configuration. This configuration also includes a PushTopic record. However while creating/refreshing full sandboxes from ...
user avatar
  • 304
1 vote
0 answers
50 views

Can I deploy backed up outbound change set after sandbox refresh?

I want to get my outbound change set back in my sandbox after it is refreshed. Till now, I can backup my outbound change sets with sfdx force:source:retrieve command. But I can not deploy these again ...
user avatar
0 votes
0 answers
81 views

Automatically update profile IP restrictions that depend on the environment

Our setup has integrations that access Salesforce through service users. This users profiles have IP whitelists. Now a new system has Internet-facing IP ranges that depend on the environment (...
user avatar
  • 1,154
0 votes
0 answers
747 views

Refreshed Sandbox required me to reset my password to login

I had an existing Sandbox that I refreshed for the first time and I wasn't able to log into it until I changed my password. Why is that? My previous sandbox was called Staging and when I refreshed it, ...
user avatar
  • 1,000
0 votes
0 answers
208 views

Salesforce SandboxPostCopy fails on Sandbox refresh

I have used some code to helps us with sandbox refreshes back in 2018. For the past several months, I noticed that when we refresh an existing box, the admin emails do not get updated. Just recently I ...
user avatar
  • 337
0 votes
0 answers
504 views

Critical Update - Stabilize the Hostname for My Domain URLs in Sandboxes

In the critical update page it sates that - "Activating this critical update on a production org only applies the update to new and refreshed sandbox orgs." But in the release notes it ...
user avatar
1 vote
0 answers
36 views

Sandbox Refreshes with Different Connected Apps Configurations for Prod/Test [duplicate]

Currently looking for ideas on how to handle sandbox refreshes, where production and the sandboxes use different configurations in a Connected App. That is, each environment has a Connected App where ...
user avatar
  • 153
2 votes
1 answer
890 views

Dynamically set Connected App Callback URL

I am trying to dynamically update the callback url in a connected app. When creating a sandbox, I want to run an apex class that change the callback URL from a production to UAT callback endpoint. ...
user avatar
  • 1,838
2 votes
1 answer
849 views

Why Connected App's client_id and client_secret still valid after a sandbox refresh?

Imagine you have a Connected App foo I've noticed that even after refreshing a sandbox, you are still able to use the client_id and client_secret of the foo Connected App of that sandbox before it ...
user avatar
1 vote
0 answers
732 views

SandboxRefresh Class will not run on refresh but will run in Anonymous Context

Here is my code for the SandboxRefresh class that I'm trying to run. The batch classes have a finish method that does attempt to send emails, and I'm wondering if the default Deliverability settings ...
user avatar
  • 1,268
0 votes
2 answers
768 views

Deploy code to a refreshed sandbox

I'm currently managing my code in git. We are about to refresh all sandboxes, so all changes that aren't in production will be deleted. However, they are in git. Therefore, git is more updated than ...
user avatar
  • 1,514
2 votes
1 answer
156 views

Do Usernames Hang Around for a While After Refreshing a Sandbox?

Do usernames hang around for a while after refreshing a sandbox? I refreshed an existing sandbox from production and then attempted to update users to activate them and reset their passwords. When ...
user avatar
1 vote
2 answers
527 views

Refreshing / Creating developer sandbox from partial or full sandbox

In Enterprise edition of Salesforce, I remember being able to create or refresh a developer sandbox from a partial or full sandbox instead of production. This would also copy over some of the data ...
user avatar
  • 368
0 votes
1 answer
160 views

While refreshing Partial Copy sandbox, is Customer Community users also created with Contacts?

I want to refresh Partial Copy sandbox with few set of objects data which includes contact records as well. I don`t want to send any sandbox email to Community user in the process of refresh. While ...
user avatar
  • 311
2 votes
2 answers
662 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?
user avatar
  • 137
1 vote
3 answers
833 views

Sandbox Refresh: Common problems

We are planning to refresh our DEV Sandbox (Used for Integration Testing) from Prod. I am trying to identify impacted areas and how I can address those post refresh One of the identified areas - ...
user avatar
12 votes
1 answer
839 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 ...
user avatar
  • 62.3k
2 votes
3 answers
4k 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 ...
user avatar
  • 73
3 votes
1 answer
160 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 ...
user avatar
  • 13.3k
1 vote
2 answers
2k views

Would Refreshing a Sandbox Wipe Out Certain Metadata?

If I have custom-setting metadata (or any other custom objects) in a partial-copy sandbox and not in production, then I refresh the sandbox, will that metadata be wiped out and have to be recreated? ...
user avatar
1 vote
1 answer
62 views

Which Sandbox Types are Configuration-Only?

This question asks what the difference is between configuration and developer sandboxes, but I want to know which sandbox types are configuration-only. In no documentation are certain types called ...
user avatar
0 votes
1 answer
563 views

can I update platform version on new sandbox

I created a new sandbox but since its a copy from production it is on API 44 all other sandboxes are API 45. is there a way to manually update the API version on the newly created sandbox to API 45?
user avatar
  • 168
1 vote
1 answer
36 views

Is it possible to prevent certain flows from being cloned

Is it possible to prevent certain flows from being accessed when someone clone a sandbox?
user avatar
  • 11
3 votes
0 answers
141 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 ...
user avatar
1 vote
2 answers
117 views

Deploy test for a SandboxRefreshScript

I'm trying to deploy a SandboxRefresh script to prod. One of the main things that script does is replicate the structure of Chatter groups we use so that I can then use Processes in my sandbox that ...
user avatar
0 votes
1 answer
646 views

Org Data Update just after the sandbox refresh in FullCopy Sandbox

Our requirement is to update customer's email ID and Phone# to an invalid value in FullCopy sandbox during the sandbox refresh. Using PostSandbox refresh apex class we are updating the User email and ...
user avatar
  • 347
5 votes
4 answers
495 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 ...
user avatar
  • 33.6k
2 votes
2 answers
458 views

Heroku Connect, Sandbox Refreshes and Synced Rows

I have a question regarding Heroku Connect rows and Salesforce Sandbox refreshes. Heroku Connect cares about how many unique rows are synced in a given period. Even if that row becomes unsynced, it ...
user avatar
  • 1,913
1 vote
1 answer
499 views

Will the OAuth 2.0 token for Lightning Sync copied from/to salesforce sandbox environment?

We are going to connect salesforce Lightning Sync via OAuth 2.0 to our O365 applications. Will the issued OAuth Token be copied to a sandbox environment, if already present in the productive ...
user avatar
1 vote
1 answer
1k views

If I refresh my Sandbox now, will it be on the Preview Release version?

Looking at the documentation What happens if I refresh my sandbox now? Will still be built on Winter Release 19 and stay as it is now (as we are close to the 13 October Deadline) It will go to Summer ...
user avatar
  • 335
1 vote
1 answer
233 views

Need To Automate Sandbox Refresh Activity

We have received a requirement where we need to automate the sandbox refresh activity. Is there any way to automate the same? Thanks, Ravi Ranjan
user avatar
1 vote
1 answer
580 views

Way to automate a Salesforce reconfiguration post sandbox-refresh

I am wondering if there is a way to automate the process of reconfiguring a Salesforce sandbox to a specific configuration, post-refresh. Currently I have read about a python add-on to create a script ...
user avatar
  • 81
4 votes
4 answers
16k views

What exactly does refreshing sandbox do?

According to the (Salesforce help) page : Refreshing a sandbox updates the sandbox’s metadata from its source org. If the sandbox is a clone or if it uses a sandbox template, the refresh ...
user avatar
  • 1,081
2 votes
1 answer
632 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 ...
user avatar
  • 169
0 votes
1 answer
124 views

Is a one off request/case possible to have a Full Sandbox 29 day wait waived?

We have a very important data migration coming up and I'd really rather not wait the full 29 day waiting period that Salesforce implements for a Full sandbox. Has anyone opened a request with ...
user avatar
  • 889