{"title":"Product Category Hierarchy Object Reference","slug":"product-category-hierarchy-object-reference","url":"https://support.storeconnect.com/articles/product-category-hierarchy-object-reference","url_markdown":"https://support.storeconnect.com/articles/product-category-hierarchy-object-reference.md","subtitle":null,"summary":"Describes the relationship between Product Categories. A product category can have multiple parents as well as multiple children.","type":"Developer_Documentation","video_url":"","keywords":"salesforce, object reference, Product Category Hierarchy, s_c__Product_Category_Hierarchy__c, api","last_modified":"2026-08-21T07:12:35+0000","body_markdown":"## Overview\n\nDescribes the relationship between Product Categories. A product category can have multiple parents as well as multiple children.\n\n| Property | Value |\n|----------|-------|\n| **API Name** | `s_c__Product_Category_Hierarchy__c` |\n| **Label** | Product Category Hierarchy |\n| **Plural Label** | Product Category Hierarchies |\n| **Type** | Custom Object |\n\n## Fields\n\n| Field Label | API Name | Type | Required | Description |\n|-------------|----------|------|----------|-------------|\n| Child Category | `s_c__Child_Id__c` | Lookup ([s_c__Product_Category__c](product-category-object-reference)) | Yes | Child of the Product Category hierarchy relationship. Could be called subcategory. |\n| Parent Category | `s_c__Parent_Id__c` | Lookup ([s_c__Product_Category__c](product-category-object-reference)) | Yes | Parent of the Product Category hierarchy relationship. |\n| Position | `s_c__Position__c` | Number(18,0) | No | The position of this Category in relation to other Categories of the same parent. Any categories with an empty position will be ordered last alphabetically. |\n| Is the primary parent of the child | `s_c__Primary_Parent__c` | Checkbox | No | Determines if the Parent Category is the primary parent of the Child Category. Used when trying to work out the ancestry of a given Child Category when we walk up the hierarchy, for example on breadcrumbs. |\n| StoreConnect External ID | `s_c__sC_Id__c` | Text(36) | No | StoreConnect External ID, do not modify in Salesforce |\n\n## Relationships\n\n| Field | Type | Related Object | Relationship Name |\n|-------|------|----------------|-------------------|\n| `s_c__Child_Id__c` | Lookup | [s_c__Product_Category__c](product-category-object-reference) | Child_Categories |\n| `s_c__Parent_Id__c` | Lookup | [s_c__Product_Category__c](product-category-object-reference) | Parent_Categories |"}