A very happy new year to all of my readers. Hope all your new year will be full of joy and happiness. Wish you all a great and productive year ahead.
2016 has come and another year has passed by. Have been writing for a quite a long period now. Hope to share across all fun stuff this year throughout.
Here is one of the series that started in 2015 and still continuing : Spring 16 preview. Today we will be talking about the Deployment changes expected in Spring 16 release. I am talking about the ones I liked and there could be more in this release which you can find afterwards.
New Post-Copy Script for Sandboxes:
Many of us would like to perform some operations after a sandbox is refreshed. Actions like changing the API end points. Changing some custom setting values and stuff like that. Currently if we refresh a sandbox the custom settings are also copied as is. Sometimes we store the API connections details in Custom setting, which gets copied to the sandbox as well from Production. This can cause a lot of issues. Now we will have an option to do these clean ups before anyone logs into the sandbox.
You can write an Apex class that implements SandboxPostCopy and specify the class in the above place . For example, the following Apex class simply reports the three contexts available in SandboxPostCopy: your organization ID, sandbox ID, and sandbox name. In this class you can modify your data and custom settings.
Sample class
global class HelloWorld implements SandboxPostCopy {
global void runApexClass(SandboxContext context) {
System.debug(‘Hello Tester Pester ‘ + context.organizationId() + ‘ ‘ + context.sandboxId() + context.sandboxName());
}
}
Sandbox refresh Progress Tracking:
You can monitor the progress of your sandbox creation or refresh. From Setup, click Sandboxes or Data Management > Sandboxes to view a list of your sandboxes. The list displays a progress bar for sandboxes in the queue, in process, or recently completed. Hover
over the progress bar to view the percentage completed of a copy in progress. Click a name to go to a detail page showing information
about the sandbox, including how much time before the next available refresh.
Hope this quick tips helps someone out there.
Keep reading and sharing……..
Leave a Reply