Retrieve Child Items Using TMF620 API
Create custom metadata and update the DataRaptor Transform in Salesforce for the specific resource to retrieve child items from TMF620 Product Catalog Management API resources. By default, the API returns the parent-bundled items in the response.
With these changes, the GET and POST APIs for all TMF 620 API resources return the child items in the responses.
- From Setup, in the Quick Find box, enter
Metadata
, and then click Custom Metadata Types. - Click Manage Records associated with Vlocity Integration Setting.
- Click New.
- Create the TMForumDefaultAttributeCategory custom metadata with these values:
- Label:
TMForumDefaultAttributeCategory
- Type of API:
TMForum
- API Name:
TMForumDefaultAttributeCategory
- Key:
AttributeCategoryName
- Default Value:
TMForum
- Vlocity Integration Setting Name:
TMForumDefaultAttributeCategory
- Label:
- Create the TMForumProductSpecificationUseChildForBu custom metadata for the productSpecification resource with these values:
- Label:
TMForumProductSpecificationUseChildForBu
- Type of API:
TMForum
- API Name:
TMForumProductSpecification
- Key:
UseChildForBundleProduct
- Default Value:
true
- Vlocity Integration Setting Name:
TMForumProductSpecificationUseChildForBu
- Label:
- Create the TMForumProductOfferingUseChildForBu custom metadata for the productOffering resource with these values:
- Label:
TMForumProductOfferingUseChildForBu
- Type of API:
TMForum
- API Name:
TMForumProductOffering
- Key:
UseChildForBundleProduct
- Default Value:
true
- Vlocity Integration Setting Name:
TMForumProductOfferingUseChildForBu
- Label:
- Create the TMForumAllFieldstoQuery custom metadata, which is required for both the productSpecification and productOffering resources, with these values:
- Label:
TMForumAllFieldstoQuery
- Type of API:
TMForum
- API Name:
TMForum
- Key:
AllFieldstoQuery
- Default Value:
true
- Vlocity Integration Setting Name:
TMForumAllFieldstoQuery
- Label:
- Update the TMF-TMForumProductSpecificationResponseTransform DataRaptor Transform for the productSpecification resource.
- On the OmniStudio DataRaptors tab in the OmniStudio app, access the TMF-TMForumProductSpecificationResponseTransform DataRaptor Transform.
- Modify the mapping for the bundledProductSpecification node to use the
ChildProductId__r
field for the Name and ID properties. - Modify the formula for
productChildItems:href
to use theChildProductId
field instead of theParentProductId
field.
- Update the TMF-TMForumProductOfferingResult DataRaptor Transform for the productOffering resource.
- On the OmniStudio DataRaptors tab in the OmniStudio app, access the TMF-TMForumProductOfferingResult DataRaptor Transform.
- Modify the mapping for the bundleProductOffering node to use the
ChildProductId__r
field for the Name and ID properties. - Modify the formula for
productChildItems:href
to use theChildProductId
field instead of theParentProductId
field.