Hi ,
We have an interface SandboxPostCopy from salesforce.com to do data manipulation after sandbox is created or refresh.
It makes our sandbox environment business ready, automate data manipulation or business logic tasks.
At sandbox creation, specify a single Apex class to perform the tasks. This class executes every time the sandbox is copied.
Create an Apex class that implements SandboxPostCopy and specify the class here. For example, the following Apex class simply reports the three contexts available in SandboxPostCopy: your organization ID, sandbox ID, and sandbox name:
Example:
global class HelloWorld implements SandboxPostCopy { global void runApexClass(SandboxContext context) { System.debug('Hello Tester Pester ' + context.organizationId() + ' ' + context.sandboxId() + context.sandboxName()); } }
you can write your business logic in the method "runApexClass"
Reference:
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_interface_System_SandboxPostCopy.htm?search_text=SandboxPostCopy#apex_interface_System_SandboxPostCopy_Example
https://docs.releasenotes.salesforce.com/en-us/spring16/release-notes/rn_deployment_sandbox_postcopy_script.htm
SalesForce learning essential because lot of technological advancements happen in near future and now. CRM( Customer Relationship Management) System will attract more companies
ReplyDeleteThanks for sharing your knowledge to help others.
ReplyDeleteVery useful Article.
wordpress customer portal
i read a lot of stuff and i found that the way of writing to clearifing that exactly want to say was very good so i am impressed and ilike to come again in future..
ReplyDeletemlb중계
I am glad you take pride in what you write. This makes you stand way out from many other writers that push poorly written content.
ReplyDelete유로파리그중계