---
schema_version: "1"
id: a67eae8c5a75a74421ab3f4d4ef4591d0ee49043d5edcfa0cfd4687ac72c3d2a
title: Category Resource Mappings
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/industries-integrations/comms/guides/Resource_mappings/category.md
canonical_url: https://developer.salesforce.com/docs/industries/communications/guide/category.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 18942c7c06dbbd4215e6c5cc7d7900df19e02919dae3aff9be2ea142c11e4222
products:
  - Communications Cloud TM Forum API
  - Industries Integrations
---
# Category Resource Mappings

## Constraints and Limitations

Before using the TMF620 category resource mappings, refer to the following.

- The ids and names sent in the subResource (subCategory / productOffering) must be present in the system to create a new relationship.
- Patching of the subresource productOffering is supported for the patchCategory API. Patching of the relationship is possible if both the `id` and `name` sent in the request for a productOffering are present in the system.
- The names of the catagories are unique when patching. Ensure that `name` field remains unique in the PATCH request.
- Category - Incoming `id` and `name` of this node can only be matched with global key and name of the product. This is cannot be customized to change the matching criteria or to add additional matching criteria(s).
- Product specification creation is done through product specification API assuming the category is already created and linking of product to a specific category is done through product specification API.
- Catalog relationship name is same as child catalog (sub-category name).
- Id in the request/response bodies is mapped to GlobalKey\_\_c in the catalog object.
- Category replicates the catalog object in Salesforce. Catalog relationship is created with category resource.
- Any category or sub-category not available must be created.

| TMF Field<div style="width:120px"></div> | Type<div style="width:120px"></div> | Description<div style="width:120px"></div>                                                                       | Salesforce Mapping<div style="width:120px"></div>                 | Salesforce Description<div style="width:120px"></div>                           | Prerequisite<div style="width:120px"></div>                                                                   | Is mandatory?<div style="width:120px"></div> |
| ---------------------------------------- | ----------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -------------------------------------------- |
| description                              | string                              | Describes the catalog.                                                                                           | vlocity_cmt\_\_Description\_\_c                                   | Describes the parent category.                                                  | NA                                                                                                            | No                                           |
| lastUpdate                               | datetime                            | Specifies the date and time of the last update.                                                                  | LastModifiedDate                                                  | Specifies the last updated date of the category.                                | NA                                                                                                            | No                                           |
| lifecycleStatus                          | string                              | Specifies the current lifecycle status.                                                                          | vlocity_cmt\_\_IsActive\_\_c                                      | Specifies if the parent category is active.                                     | If lifecycleStatus value is 'Active' in the payload, vlocity_cmt\_\_IsActive\_\_c is set to True, else False. | No                                           |
| name                                     | string                              | Required. Specifies the name of the catalog.                                                                     | Name                                                              | Specifies the lookup field from the catalog object for the parent catalog name. | NA                                                                                                            | Yes                                          |
| id                                       | string                              | Specifies the catalog ID.                                                                                        | vlocity_cmt\_\_GlobalKey\_\_c                                     | Specifies the unique ID of the category resource.                               | NA                                                                                                            | No                                           |
| validFor - startDateTime/endDateTime     | time period                         | Specifies the period for which the catalog is valid.                                                             | vlocity_cmt\_\_StartDateTime\_\_c/vlocity_cmt\_\_EndDateTime\_\_c | Specifies the validity of the category.                                         | NA                                                                                                            | No                                           |
| @type                                    | string                              | Defines the subclass extensible name when subclassing.                                                           | Resource name (Catalog)                                           | Specifies that the sObject name is Category.                                    | NA                                                                                                            | Yes                                          |
| isRoot                                   | boolean                             | Indicates whether the category is a root category (true) or a child category (false).                            | vlocity_cmt\_\_IsCatalogRoot\_\_c                                 | Specifies if the parent catalog is a root catalog or a child catalog.           | NA                                                                                                            | No                                           |
| href                                     | string                              | Specifies the hyperlink reference of the category.                                                               | TMF Category URL + vlocity_cmt\_\_Catalog\_\_c.Id                 | Specifies the GET URL of the TMF Category ending with the ID field.             | NA                                                                                                            | No                                           |
| subCategory                              | object                              | The category resource is used to group product offerings, service and resource candidates in logical containers. | vlocity_cmt\_\_Catalog\_\_c                                       | Specifies the relation between catalogs.                                        | Link a product catalog to the category.                                                                       | Yes                                          |
| productOffering                          | string                              | A product offering represents entities that are orderable from the provider of the catalog.                      | Product2                                                          | Specifies the relation between product catalogs.                                | NA                                                                                                            | No                                           |

## subCategory Subresource Mappings

| TMF Field<div style="width:120px"></div> | Type<div style="width:120px"></div> | Description<div style="width:120px"></div>                  | Salesforce Mapping<div style="width:120px"></div>         | Salesforce Description<div style="width:120px"></div>                          | Prerequisite<div style="width:120px"></div> | Is mandatory? |
| ---------------------------------------- | ----------------------------------- | ----------------------------------------------------------- | --------------------------------------------------------- | ------------------------------------------------------------------------------ | ------------------------------------------- | ------------- |
| subCategory.name                         | string                              | Specifies the name field in the subcategory.                | vlocity_cmt\_\_Catalog\_\_c.Name                          | Specifies the lookup field from the catalog object for the child catalog name. | NA                                          | Yes           |
| subCategory.id                           | string                              | Specifies the ID field in the subcategory.                  | vlocity_cmt\_\_Catalog\_\_c.vlocity_cmt\_\_GlobalKey\_\_c | Specifies the global key field of the catalog object.                          | NA                                          | No            |
| subCategory.href                         | string                              | Specifies the hyperlink reference field in the subcategory. | TMF Category URL + vlocity_cmt\_\_Catalog\_\_c.Id         | Specifies the GET URL of the TMF catalog ending with the ID field.             | NA                                          | No            |
| subCategory.@type                        | string                              | Defines the resource type.                                  | resource name 'catalog'                                   | Specifies that the sObject of the subCategory node is Catalog.                 | NA                                          | No            |

## productOffering Subresource Mappings

| TMF Field<div style="width:120px"></div> | Type<div style="width:120px"></div> | Description<div style="width:120px"></div>                       | Salesforce Mapping<div style="width:120px"></div> | Salesforce Description<div style="width:120px"></div>                      | Prerequisit<div style="width:120px"></div> | Is mandatory?<div style="width:120px"></div> |
| ---------------------------------------- | ----------------------------------- | ---------------------------------------------------------------- | ------------------------------------------------- | -------------------------------------------------------------------------- | ------------------------------------------ | -------------------------------------------- |
| productOffering.name                     | string                              | Specifies the name of the product offering.                      | Product2.Name                                     | Specifies the name of products linked to the parent catalog.               | NA                                         | No                                           |
| productOffering.id                       | string                              | Specifies the product offering ID.                               | Product2.vlocity_cmt\_\_GlobalKey\_\_c            | Specifies the global key field of the Product2 object.                     | NA                                         | No                                           |
| productOffering.href                     | string                              | Specifies the hyperlink reference field in the product offering. | TMF Product2 URL + Product2.Id                    | Specifies the GET URL of the TMF productOffering ending with the ID field. | NA                                         | No                                           |
| productOffering.@type                    | string                              | Defines the resource type.                                       | resource name 'productOffering'                   | Specifies that the resource name is productOffering.                       | NA                                         | No                                           |
