Loading
Feature degradation | Gmail Email delivery failureRead More
Set Up and Maintain Retail Execution
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Additional Steps To Upgrade Managed Packages to Spring ’23

          Additional Steps To Upgrade Managed Packages to Spring ’23

          To upload static resources for Spring ’23, follow these steps.

          Required Editions

          Available in: Lightning Experience

          Available in: Enterprise and Unlimited Editions where Consumer Goods Cloud is enabled

          User Permissions Needed
          To upload static resources: System Administrator

          Update the Inventory_Control_Template__c Object

          If you upload .csv files using Setup assistant, the inventory control template record type could change to Inventory record type. To update the Inventory_Control_Template_ _c object type, run this query.

          1. From Setup, select Developer Console.
          2. To open the Enter Apex Code window, select Debug | Open Execute Anonymous Window.
          3. Enter this query.
            // Demo data record names vs record type name
                        Map<String,String> mapRecordTypeByRecordName = new Map<String,String>();
                        mapRecordTypeByRecordName.put('Wastage','Inventory');
                        mapRecordTypeByRecordName.put('Customer Product Quota','Quota');
                        mapRecordTypeByRecordName.put('Damaged Goods','Inventory');
                        mapRecordTypeByRecordName.put('Sellable Goods','Inventory');
                        mapRecordTypeByRecordName.put('Cash Float without Period','Cash Float');
                        mapRecordTypeByRecordName.put('Cash Float with Period (User)','Cash Float');
                        mapRecordTypeByRecordName.put('AdvertisingMaterialCustomerQuota','Quota');
                        mapRecordTypeByRecordName.put('Sample User Inventory','Inventory');
                        mapRecordTypeByRecordName.put('AdvertisingMaterialUserQuota','Quota');
                        mapRecordTypeByRecordName.put('Tour Inventory (User)','Inventory');
                        mapRecordTypeByRecordName.put('\'Debit Card\' User Cash Float','Cash Float');
                        mapRecordTypeByRecordName.put('\'Cash\' User Cash Float','Cash Float');
                        mapRecordTypeByRecordName.put('\'Cheque\' User Cash Float','Cash Float');
                        mapRecordTypeByRecordName.put('\'Credit Card\' User Cash Float','Cash Float');
                        mapRecordTypeByRecordName.put('\'Money Order\' User Cash Float','Cash Float');
                        
                        List<RecordType> recordTypes = [
                        SELECT Id, name 
                        FROM RecordType 
                        WHERE name in ('Cash Float', 'Quota','Inventory') 
                        and SobjectType = 'cgcloud__Inventory_Control_Template__c'
                        ];
                        
                        Map<String, Id> recordTypeByName = new Map<String, Id>();
                        for(RecordType rt : recordTypes) {
                        recordTypeByName.put(rt.Name, rt.Id);
                        }
                        
                        
                        List<cgcloud__Inventory_Control_Template__c> inventoryControlTemplates  = [
                        Select Id, Name, RecordTypeId, RecordType.Name from cgcloud__Inventory_Control_Template__c
                        ];
                        
                        for(cgcloud__Inventory_Control_Template__c ict : inventoryControlTemplates) {
                        String currentRecordTypeName = ict.RecordType.Name;
                        String expectedRecordTypeName = mapRecordTypeByRecordName.get(ict.Name);
                        if(expectedRecordTypeName != currentRecordTypeName) {
                        System.debug('Record type for \'' + ict.name + '\' is going to be updated from ' + 
                        currentRecordTypeName + ' to ' + expectedRecordTypeName);
                        ict.RecordTypeId = recordTypeByName.get(expectedRecordTypeName);
                        } else {
                        System.debug('Record type for \'' + ict.name + '\' is as expected');
                        }
                        }
                        
                        update inventoryControlTemplates;
          4. Click Execute.
          5. If you select Open Log, the log opens in the Log Inspector. After the code runs, the debug log is listed on the Logs tab. To open the log in the Log Inspector, double-click the log.

          Upload Static Resource Files

          Download files from RetailRepositoryData in Static Resources, and then upload the files to Salesforce by using the dataloader.io insert or upsert operation.

          If the static resource file uploads data for objects such as Promotion Template, Search Strategy, or System Number, then Handle Validation Rules

          Note
          Note For more information about unmapped fields that need mapping, see Record Type Mapping. For fields that don’t require mapping, see Unmapped Fields.
          1. From Setup, in the Quick Find box, enter Static Resources and select it.
          2. Download and extract the RetailRepositoryData.zip static resource file.
          3. From Setup, in the Quick Find box, enter Dataloader.io and select it.
          4. Click Launch dataloader.io and login with your org credentials.
          5. In dataloader.io, upload the files from only the RetailRepositoryData/Upgrade/240 folder.
            Important
            Important A CSV file that you upload can be dependent on another CSV file. To prevent any errors, we recommend that you upload files in this sequence.
          File name sObject API Name Operation
          Mobile_App_Domain_-_NEW_242.csv Sync_Mobile_App_Domain__c Insert
          Mobile_App_Picklist_Mapping_-_MODIFIED_242.csv Sync_Mobile_App_PL_Map__c Upsert
          Tracked_Object_Config_-_MODIFIED_242.csv Sync_Tracked_Object_Config__c Upsert
           
          Loading
          Salesforce Help | Article