---
schema_version: "1"
id: da86d7282e3be76f62ab06eb52b6c1c4139c894f4181f5aae897ae6237d33cf7
title: Additional Steps To Upgrade Managed Packages to Spring ’23
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/cg_concept_admin_static_resources_upgrade_242.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.cg_concept_admin_static_resources_upgrade_242.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: ba6a7c2ecd0bda817a48456452470ae1749425e1198ba2158926664c83f8a1b2
description: To upload static resources for Spring ’23, follow these steps.
products:
  - Consumer Goods
release: "264"
---
# Additional Steps To Upgrade Managed Packages to Spring ’23

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

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition">
          <colgroup>
            <col>
          </colgroup>
          <tbody>
            <tr class="">
              <td class="slds-cell-wrap" style="vertical-align:top;">
                <p>Available in: Lightning Experience </p>
                <p style="margin-bottom:0;">Available in: <strong>Enterprise</strong> and
                  <strong>Unlimited</strong> Editions where Consumer Goods Cloud is enabled
                </p>
              </td>

            </tr>
          </tbody>
        </table> <table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
          <colgroup>
            <col style="width:50%">
            <col style="width:50%">
          </colgroup>
          <thead class="slds-text-title_caps ">
            <tr class="">
              <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d40218e66">User Permissions
                Needed</th>
            </tr>
          </thead>
          <tbody>
            <tr class="">
              <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d40218e66 ">To upload static resources:</td>

              <td class="slds-cell-wrap" style="vertical-align:top;" headers="d40218e66 ">System Administrator</td>

            </tr>
          </tbody>
        </table>

## 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.
    
    ```html
    // 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](https://help.salesforce.com/s/articleView?id=ind.cg_task_handle_validation_rules.htm&type=5&language=en_US)

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-consumer_goods_retail_admin-264-0-0-production-enus/5bb7d7f5-119d-42d0-8596-95e762837019/images/icon_note.png)

Note For more information about unmapped fields that need mapping, see [Record Type Mapping](https://help.salesforce.com/s/articleView?id=ind.cg_concept_admin_map_recod_types.htm&release=264.0.0&type=5 "After you upload a file by using dataloader.io, use this table to identify the fields that aren't mapped and then map the fields accordingly."). For fields that don’t require mapping, see [Unmapped Fields](https://help.salesforce.com/s/articleView?id=ind.cg_concept_admin_unmap_record_types.htm&type=5&language=en_US).

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](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-consumer_goods_retail_admin-264-0-0-production-enus/5bb7d7f5-119d-42d0-8596-95e762837019/images/icon_important.png)
    
    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 |