Wednesday, 29 August 2012

Creating Sample Data - Apex

Prerequisites:
  • Tutorial #1: Creating Warehouse Custom Objects
Some tutorials in this workbook assume you already have sample data in your database. To be able to execute the examples, you first need to create some sample records.
Use the Developer Console to populate the sample objects you created in Tutorial 1.
  1. Start the Developer Console, then click in the input field next to Execute to display the Enter Apex Code window.
  2. If you installed the package in Tutorial 1, execute the following code:
    ApexWorkbook.loadData();
    If you manually created your schema, copy, paste, and execute the code from the following gist URL: https://gist.github.com/1886593
  3. Once the code executes, close the console.

1 comment:

  1. Thanks for sharing this great article! That is very interesting I love reading and I am always searching for informative information like this
    salesforce Online Training Bangalore

    ReplyDelete