Execute Anonymous Apex
Test new solutions, debug your code, or work with your organization using the Anonymous Apex with all the code editing features you got used to using this template.
To create this template, follow the below steps:
In the Create Migration Template screen, select the checkbox: Execute Anonymous Apex.
Next, upload the Apex code in a text(.TXT) or ZIP file. Click Choose File and upload the required file from your local system.
Click Save.
Once the template is successfully created, you'll be redirected to the Environment Provisioning History screen.
Click the Run button to run the template on your destination org.
Select your destination org from the dropdown and enter the email address(es) to receive an email notification whenever the template is run.
To use the current template as the post-deployment during CI/CD, select the Execute Anonymous Apex checkbox under the Post Deployment Steps section. This is optional.
Click Run. Please check the View History page for a detailed summary report of the operation carried out.
Last updated