---
schema_version: "1"
id: b462805a28cadb00e4e2bcea89458b375e0078ee1aad9a07667bec1bc9cbf105
title: 21.7 Release
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/commerce/264-0-0/rn_b2c_rn_21_7_release.md
canonical_url: https://help.salesforce.com/s/articleView?id=commerce.rn_b2c_rn_21_7_release.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 0815ae5310495c1bad2b11e48715fc3d3c63a730645c9e2387bbf7f89b9393cc
description: The B2C Commerce 21.7 release occurs June 17 through July 27, 2021.
products:
  - Commerce
  - B2C Commerce
release: "264"
---
# 21.7 Release

The B2C Commerce 21.7 release occurs June 17 through July 27, 2021.

Stay current with all the important B2C Commerce product updates by reviewing the release notes! For a closer look at the features and enhancements in this release, watch the [21.7 Product Release Preview](https://salesforce.vidyard.com/watch/iDyenX4cK2en1JKPzU3y3S?) video or [download](https://org62.my.salesforce.com/sfc/p/#000000000062/a/3y000000cODP/B1mUB1Q_xLriMtg7Yo9Jse1YVcpC4aN2e0NVf8d7orQ) a PDF of the Preview.

- **[Archive Long File Names During System Import Jobs](https://help.salesforce.com/s/articleView?id=commerce.rn_b2c_long_filenames_w9263749_je.htm&release=264.0.0&type=5)**  
    The system import job steps can create long file names that exceed some file system length limits, which caused problems when archiving files. You can now use Archive in Subfolders mode or Archive Overwrite Existing mode during system import jobs.
- **[Selective Origin Shielding](https://help.salesforce.com/s/articleView?id=commerce.rn_b2c_selective_origin_shielding_w9343605_je.htm&release=264.0.0&type=5)**  
    To restrict access to PODs not originating from the Commerce Cloud content delivery network (eCDN) and increase site security and availability, we’re implementing selective origin shielding (SOS). SOS prevents bots from accessing the origin outside the eCDN.
- **[Avoid Invalid Characters in Cookie Names](https://help.salesforce.com/s/articleView?id=commerce.rn_cookie_combatibility_b2c_21_7_w9263644_je.htm&release=264.0.0&type=5)**  
    Starting with compatibility mode 21.7, using invalid characters in a cookie name causes `dw.web.Cookie` to throw an exception.
- **[Get the Active Inventory Integration Mode](https://help.salesforce.com/s/articleView?id=commerce.rn_get_inventory_integration_mode_w-9297234_as.htm&release=264.0.0&type=5)**  
    When code depends on whether B2C Commerce is integrated with Omnichannel Inventory, use the new `dw.catalog.ProductInventoryMgr.getInventoryIntegrationMode()` Script API method to get the active inventory integration mode. It returns a constant defined in the `ProductInventoryMgr` class.
- **[Automate Pricing and Promotion Assignments with Jobs](https://help.salesforce.com/s/articleView?id=commerce.rn_pricing_promo_impex_job_b2c_21_7_w9293213_lb.htm&release=264.0.0&type=5)**  
    Admins can now automate price book and promotion store assignments using job steps during the import and export process. All assignments in the system are exported when using the jobs framework.
- **[Change Inventory Allocation with dw.catalog.ProductInventoryRecord](https://help.salesforce.com/s/articleView?id=commerce.rn_productinventoryrecord_update_w8520183_je.htm&release=264.0.0&type=5)**  
    With compatibility mode 21.7, you can change inventory allocation and prevent undesired allocation changes during storefront and shopper calls.