To add sample data, download and execute specific Apex classes. This process creates the necessary records for the features to function correctly.
Required Editions
| Available in: Lightning Experience |
| Available in: Enterprise, Unlimited, and Developer Editions |
| User Permissions Needed | |
|---|---|
| To create user profiles and users: | Energy & Utilities Cloud Features |
To use the Energy and Utilities Cloud Sales features, download the reference products and sample data according to the desired features:
- Reference (or sample) Products
- Product images: Download and extract the product images.
- Product data: Download the EUSalesRLMSampleData.cls and EUSalesRLMCreateSampleData.cls Apex class files.
- Pricing Data: Download the following Apex class files:
- Tariff Comparison
Make sure you download and add the files for reference products if you've not already downloaded them as a part of setting up the reference products.
- Tariff Sample Data: Download the EUServiceAppsSampleData.cls and EUServiceAppsSampleDataCreation.cls Apex class files.
-
Add the product images.
- Download and extract the product images.
- From the App Launcher, search for and select Files.
- Select Upload Files. You can upload up to 10 files at a time.
- Upload the product images.
-
Add sample product data and repeat the following steps in the following order using the
corresponding downloadable files: reference products sample data, reference products
pricing data, and tariff comparison sample data.
- From Setup, in the Quick Find box, enter and select Apex Classes.
- Select New and copy the code from each downloaded file into a new Apex Class window, saving each one.
- From Setup, select Developer Console.
- In the Developer Console, select Debug, and then Open Execute Anonymous Window.
-
Paste the following code snippet into the anonymous window: [Downloaded
file name without the extension].createRecords();
If your file name is EUServiceAppsSampleDataCreation.cls, copy this code into the anonymous window: EUServiceAppsSampleDataCreation.createRecords();.
- Select Execute.