---
schema_version: "1"
id: f7cda1974c71a88667ed1b476a537c255affe58e7dd46275f8972d360e6ca44a
title: Location Graph
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/commerce/264-0-0/oci_impl_location_graph.md
canonical_url: https://help.salesforce.com/s/articleView?id=commerce.oci_impl_location_graph.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 0079e5967e7529ef85950d41c785a268fdb69291caba9b3088a3bc487ff3b22d
description: Set up your Location Graph by creating locations and location groups in your Salesforce org and committing them.
products:
  - Commerce
  - Omnichannel Inventory
release: "264"
---
# Location Graph

Set up your Location Graph by creating locations and location groups in your Salesforce org and committing them.

This process is described in [Manage Locations and Location Groups](https://help.salesforce.com/articleView?id=commerce.inv_manage_locations_and_location_groups.htm&language=en_US) in Salesforce Help. Set up your Location Graph by creating locations and location groups in your Salesforce org and committing them Use Connect in Apex, Connect REST API, or Omnichannel Inventory console app. You can’t use the headless Commerce API to set up your location graph.

For information on managing your Location Graph with Connect in Apex, see [OmnichannelInventoryService Class](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_OmnichannelInventoryService_static_methods.htm) in the Apex Reference Guide.

For information on managing your Location Graph with Connect REST API, see [Salesforce Omnichannel Inventory Resources](https://developer.salesforce.com/docs/atlas.en-us.chatterapi.meta/chatterapi/connect_resources_omnichannel_inventory_resources.htm) in the Connect REST API Developer Guide.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-commerce-inv_omnichannel_inventory-264-0-0-production-enus/43699e0f-a394-4b55-a1eb-072df389499a/images/icon_note.png)

Note Configuring the location graph isn’t a straightforward process. Before you begin, study the documentation.

Here’s an overview of the steps to follow in your Salesforce org:

1. Create at least one location type.
2. For each location that fulfills orders, create a Location record.
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-commerce-inv_omnichannel_inventory-264-0-0-production-enus/43699e0f-a394-4b55-a1eb-072df389499a/images/icon_note.png)
    
    Note When using D2C Commerce, your location graph is limited to one location.
    
    1. Set Should Sync With OCI to **True**.
    2. Set Is Inventory Location to **True**.
    3. Set the Location Type as appropriate.
    4. Set the Visitor Address to the physical address of the location.
    5. Set the External Reference to a unique value. If you use Salesforce B2C Commerce, use the External Reference to associate the location with a dedicated B2C Commerce inventory list.
3. For each storefront, sales channel, or desired logical group of locations, create a Location Group record.
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-commerce-inv_omnichannel_inventory-264-0-0-production-enus/43699e0f-a394-4b55-a1eb-072df389499a/images/icon_note.png)
    
    Note When using D2C Commerce, your location graph is limited to one location group.
    
    1. Set Should Sync With OCI to **True**.
    2. Set Is Enabled to **True**.
    3. Set the External Reference to a unique value. If you use Salesforce B2C Commerce, use the External Reference to associate the location group with a dedicated B2C Commerce inventory list.
4. For each location, create a Location Group Assignment record for each location group that it belongs to.
    1. A location doesn’t have to belong to any location groups.
    2. A location can belong to multiple location groups. Create a location group assignment for each one.
    3. Assign at least one location to each location group.
5. Commit the changes to Omnichannel Inventory by following the instructions in the help topics.

Adding or removing locations or location groups after loading inventory availability data can trigger large availability data and cache updates. To mitigate the performance impact, we recommend these practices:

- If you use Salesforce B2C Commerce, follow the instructions in [Omnichannel Inventory Location Graph Changes](https://documentation.b2c.commercecloud.salesforce.com/DOC1/topic/com.demandware.dochelp/content/b2c_commerce/topics/inventory/b2c_omnichannel_inventory_location_graph_changes.html) in the B2C Commerce Infocenter.
- Schedule location graph changes for times with low-order traffic.
- Add or remove only one location or location group at a time.
- After making a change, wait for the update to finish before importing new inventory availability data.