Questions tagged [sandboxpostcopy]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4
votes
1answer
38 views

Is it Possible to Change a User's Email and Reset Password at Same Time via Apex Code?

When using the Saleseforce UI, it is possible to change a user's email and send them a password at the same time by changing the email and clicking 'Generate new password and notify user immediately' ...
1
vote
1answer
19 views

SandboxPostCopy Profile Name

Does anyone know what profile name or Id a SandboxPostCopy implementation occurs in? The code that I have to run after a refresh/cloning keeps hitting a validation rule based on the profile but since ...
2
votes
1answer
171 views

Sending email in sandbox post copy

When I refresh a sandbox I have a class that runs to fix some things like email addresses and custom settings. I've also been asked to email the developer the new org ID so that their testing ...
2
votes
1answer
38 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 ...
1
vote
2answers
364 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? ...
1
vote
0answers
50 views

Pushing a git repository to a Sandbox via a PostCopy script

I am currently trying to automate the whole process for working with Sandboxes in my company. As of now, we have a CLI tool which both refreshes the sandboxes and executes an Apex anonymous script to ...
0
votes
1answer
297 views

Salesforce Sandbox Context Metadata

Why there is no mention of Metadata for "Sandbox Context" anywhere in the Documentation? I only found "SandboxPostCopy Interface" where Sandbox Context is passed as a parameter. But no Documentation ...
1
vote
2answers
735 views

Execute SandboxPostCopy Interface from Anonymous Window

How can we execute SandboxPostCopy Interface from Anonymous Window for testing purpose. global class PrepareMySandbox implements SandboxPostCopy { global void runApexClass(SandboxContext context) ...
0
votes
1answer
369 views

SandboxPostCopy interface implementation

I have some problems with the SandboxPostCopy interface test class. My goal is to clean some sensitive data on some Object after a refresh. The class is this: global class CleanSandbox implements ...
1
vote
3answers
761 views

Automate master data loading after sandbox refresh

Test.loadData is used to load CSVs into an object during Test Class execution. This test data exists only in the eyes of the test class. In order to load master data using Apex after a refresh, is ...
0
votes
1answer
143 views

Invalid interface:SandboxPostCopy

I am trying to create class that can be used post sandbox refresh and I am getting Invalid Interface:SandboxPostCopy error when trying to save. Below is the code that I am using. global class ...
4
votes
2answers
653 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 ...
1
vote
1answer
485 views

Any good solutions to disable remote site settings after Sandbox refresh?

Has anybody come up with any automated solution for disabling remote site settings after a sandbox is created or refreshed? I'm trying to prevent situations where someone creates a developer sandbox ...
7
votes
1answer
592 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 { ...
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 ...
10
votes
2answers
5k 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 ...