Challenge 8: Scripting Scripts
Salesforce Devs, we have a Lab Coat Challenge for you challenge your ability to utilize queries and DMLs. Review the challenge, take a look at the starter code, and then give it your best attempt. If you come up with the right answer, you will earn a Lab Coat Badge.
Today’s challenge is related with queries and DMLs.
There are two orgs. Org A has 10 Accounts that need to find their way into Org B. Org B has no accounts. Neither org allows you to use Data Loading tools (Data Loader, Workbench, etc). Both orgs allow you to run Apex. Write an Apex script that outputs an Apex script that will run on Org B and create those 10 Account records.