Create Sample Accounts in Your Org

To complete this exercise, add the following sample data in your org.

Force.com IDE is in a maintenance-only state. We still provide support for the product through our official channels, but updates prior to October 12, 2019 will be only for critical security issues that arise. On October 12, 2019, we will no longer provide support or updates of any kind for Force.com IDE. On that date, we will also begin archiving documentation and removing download links for the product. We recommend that you start migrating to Salesforce Extensions for Visual Studio Code or one of the great tools made by our partners. For more information, see The Future of Salesforce IDEs on the Salesforce Developers Blog.

Warning

  1. Enter this code in the Source to execute field of the Execute Anonymous pane.
  2. Click Execute Anonymous.

    If you get a compile error after executing this code, make sure that Account.rating is visible to your user. To give yourself access to the Account object’s Rating field, from Setup, enter Field in the Quick Find box, then click Account | Fields | Rating | Set Field-Level Security or Field Accessibility | Account | View by Fields | Rating.

    Note

  3. In the Accounts tab of the Salesforce user interface, verify that your accounts have been created.
    Congratulations. Your org now contains all the data that you need to complete the debugging exercise.