When installing the Consumer Goods Cloud managed packages for the first time, upload data such as system configurations, templates for objects, translations, picklist mappings, synchronization setup, and demo data for retail execution objects, use an Apex code.
Required Editions
| Available in: Lightning Experience in Enterprise and Unlimited Editions that the have Consumer Goods Cloud enabled |
To perform the data upload, from setup, change the locale and language to English (en_US) for the logged-in user.
- From Setup, in the Quick Find box, find and select Apex Classes.
- Click Developer Console.
- In the developer console, from the Debug menu, select Open Execute Anonymous.
-
Upload data for objects that are part of the retail, sync, or both packages
- To upload data from both packages, use this code.
cgcloud.PostInstallDemoDataEndPoint.installDemoData(); - To upload data for objects that are only part of the retail package, use this
code.
Database.executeBatch(new cgcloud.PostInstallDemoSetupDataBatch('RetailRepositoryData', cgcloud.PostInstallDemoSetupDataBatch.ResourceScope.RETAIL_ONLY), 1); - To upload data for objects that are only part of the sync package, use this
code.
Database.executeBatch(new cgcloud.PostInstallDemoSetupDataBatch('RetailRepositoryData', cgcloud.PostInstallDemoSetupDataBatch.ResourceScope.SYNC_ONLY),1 );
Important This step uploads mandatory data coupled with demo data and can’t be segregated. See Static Resource Files for details on data uploaded. - To upload data from both packages, use this code.
-
Click Execute.
CG Cloud creates a series of seven jobs to execute the batches. The batches are executed with batch size equal to 1.
To monitor the jobs, from Setup, in the Quick Find box, find and select Apex Jobs.