---
title: "Select and map custom facets to be migrated with your contacts"
slug: "select-and-map-custom-facets-to-be-migrated-with-your-contacts"
abstract: "Map the custom facets from xDB to the CDP guest extensions in CDP."
---
# Select and map custom facets to be migrated with your contacts

Contacts that you transfer from xConnect to CDP have multiple default facets. If you have custom facets, you need to select them manually and map the facet properties to the CDP guest extension data.

> [!important]
> Select and map the custom facets *before* configuring or running any of the recipes.

To select and map custom facets:

1. Click the **Gets contacts from xConnect by their ID** step.

    ![The action that gets contacts from xConnect by their ID](https://doc.sitecore.com/api/markdown-image/xp/en/developers/100/sitecore-experience-platform/images/xdb-cdp-get-contact-facets.png)

2. In the **Expand with Facets** section, for each custom facet you want, select the corresponding check box and click **OK**.

    ![Select the xDB custom facets to be mapped with guest extension data in CDP](https://doc.sitecore.com/api/markdown-image/xp/en/developers/100/sitecore-experience-platform/images/xdb-cdp-select-custom-facets.png)

    > [!note]
    > Emails, Personal, Addresses, PhoneNumbers and ListSubscriptions are mandatory and not shown in the list.

3. Click the step where you do the mapping, as shown here:

    ![Step for mapping XP contacts with CDP guests](https://doc.sitecore.com/api/markdown-image/xp/en/developers/100/sitecore-experience-platform/images/xdb-cdp-where-the-mapping-happens.png)

4. In the **Input fields** section, click **Edit schema**.

    ![Edit schema while mapping XP contacts with CDP guests](https://doc.sitecore.com/api/markdown-image/xp/en/developers/100/sitecore-experience-platform/images/xdb-cdp-edit-schema.png)

5. Add the facets as variables into `extensions` and click **Update**. The example shows the custom facets *CinemaVisitorBonus* and *CinemaVisitorInfo*.

    ```csharp
    {
                    "control_type": "text",
                    "label": "CinemaVisitorBonus",
                    "type": "string",
                    "name": "CinemaVisitorBonus"
                  },
                  {
                    "control_type": "text",
                    "label": "CinemaVisitorInfo",
                    "type": "string",
                    "name": "CinemaVisitorInfo"
                  },
    ```

6. In the **Extensions** section, one by one, click the newly added fields and map them to the required fields in CDP, as shown here:

    ![The Extensions section for mapping XP contacts with CDP guests](https://doc.sitecore.com/api/markdown-image/xp/en/developers/100/sitecore-experience-platform/images/xdb-cdp-map-custom-facet-fields-to-cdp.png)