---
schema_version: "1"
id: da9e7792cf47b616fa407d86c71f9fc237448884de7211a3545bc875a7857fbe
title: Add Fields to the Basket
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/industries/cme/guides/comms-t-add-fields-to-the-basket.md
canonical_url: https://developer.salesforce.com/docs/industries/cme/guide/comms-t-add-fields-to-the-basket.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 8e75a6daed20caedb1162510e4b2cc68c976b254e95a075d0d942fd2c1a94b3c
products:
  - Communications, Media, Energy and Utilities APIs (Managed Package)
  - Industries Developer Documentation
---
# Add Fields to the Basket

With basket operations, you can retrieve additional fields as part of their response for the following objects: Order Pricing, OrderItems, OrderAppliedPromotion, and OrderAppliedPromotionItem.

To retrieve additional fields, you need to create fieldsets. You can also set the fields as part of the response.

During a cache-miss, when a new basket is generated, the `dc_basket_fs` fieldset field and the default fields that use `dc_basket_fs` (Order Pricing, OrderItems, OrderAppliedPromotion, and OrderAppliedPromotionItem) are cached. When creating an actual order checkout or another basket, in the case of a cache miss, those additional fields are synchronized to the newly created Salesforce objects and cached. These object fields, if not read-only, are editable so you can write custom logic to populate those fields during the basket operation. Those fields and values are carried over during cache miss and order creation.

The modifications you’ve made as part of the basket operations can be passed to the order, which recognizes those additional settings.

Once the custom field is stored in the cache, other users can see it and it will be returned in other basket calls if the request matches it.

**note:** The `dc_basket_fs` fieldset is supported only when Classic DC is enabled and is not available with Standard DC except createCart API.

To create a fieldset:

1.  From Setup, in the Quick Find box, enter `Object Manager`.

2.  Click Object Manager.

3.  Click a Salesforce object, for example, Order Pricing.

4.  Click Field Sets.

5.  Click New.

    ![Object Manager Order Pricing](https://developer.salesforce.com/docs/media/dc_fieldsets_objmgr.png)

6.  Provide the following information:

    - **Field Set Label**: `dc_basket_fs`

    - **Field Set Label**: `dc_basket_fs`

    - **Where is this used?**: Type an answer.

7.  Click Save.

    The Layout Editor appears.

    ![Layout Editor Field label](https://developer.salesforce.com/docs/media/dc_fieldsets_layouted.png)

8.  Drag and drop additional fields as required to the **In the Field Set** section, then click Save. The header page appears with the dc_basket_fs link under the FIELD LABEL column. The link contains the fields in the fieldset that are returned by the API.

    To make any changes to the fields, click dc_basket_fs or the Edit action from the action arrow.

    ![Object Manager Order Pricing Field Sets](https://developer.salesforce.com/docs/media/dc_fieldsets_action.png)

    To view custom fields in the Basket API response, pass the custom fields as parameters in the API request. For example,

    ```
    GET
    /services/apexrest/vlocity_cmt/v3/catalogs/TESTCKG/basket?fields=vlocity_cmt__IsChangesAccepted__c,vlocity_cmt__IsPriced__c
    ```
