Upload Static Resource Data for Consumer Goods Cloud Managed Packages

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.

Important
Important Perform these steps only while installing the managed packages for the first time. If you’re upgrading the Consumer Goods Cloud managed package, skip these steps and perform the steps in the Static Resources for Upgrade Managed Packages section.
  1. From Setup, in the Quick Find box, find and select Apex Classes.
  2. Click Developer Console.
  3. In the developer console, from the Debug menu, select Open Execute Anonymous.
  4. 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
    Important This step uploads mandatory data coupled with demo data and can’t be segregated. See Static Resource Files for details on data uploaded.
  5. 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.