You are here:
Inventory Fulfillment Locations
Omnichannel Inventory uses three objects to represent the facilities that fulfill orders: Location, Location Group, and Location Group Assignment.
- Location tracks inventory availability for a location such as a warehouse or retail store.
- Location Group aggregates and exposes inventory availability for a group of related locations, such as those in a defined geographic area or belonging to a common brand or storefront. When a shopper orders through a sales channel associated with a location group, routing logic can fulfill the order from any location or set of locations in that group. In B2C Commerce, you can easily associate a location group with a site or store by using the corresponding B2C Commerce inventory list.
- Location Group Assignment is the relationship between a location and a location group. A location group has one assignment for each of its locations, and a location has one assignment for each location group that it belongs to.
The complete set of locations, groups, and assignments is called the location graph.
Salesforce associates location and location group records with corresponding OCI records and B2C Commerce inventory lists by using the External Reference field.
- External References must be unique. Attempting to save a duplicate External Reference causes an error.
- A location or location group’s External Reference must exactly match the ID of the corresponding inventory list in B2C Commerce.
- In inventory API inputs and outputs, locations and location groups are identified by External Reference, not record ID.

