---
title: "Manage custom values"
slug: "manage-custom-values"
abstract: "Manage custom values by testing, publishing, duplicating, or deleting them."
---
# Manage custom values

> [!important]
> Feature availability is part of a phased rollout. Your organization may not see this functionality yet. It will become available when your environment is included in the rollout.

Custom values are reusable JavaScript-based inputs that you can use in decision tables for [component personalization](https://doc.sitecore.com/sai/en/users/sitecoreai/personalize-and-test/component-personalization.html "Component personalization"). Manage them by testing, publishing, duplicating, or deleting them.

## Test a custom value

Test custom values to verify that they return the expected results before using them in decision tables. We recommend testing custom values before publishing them.

To test a custom value

1. In the navigation menu, click **Optimization**. 
2. In the left-hand pane, click **Custom values**.
3. On the **Custom Values** page, open the custom value you want to test.
4. Click **Test**.
5. In the test dialog, choose the profile to use for testing:

    ![In the test dialog, choose a profile to use by loading a profile or generating it using AI.](https://doc.sitecore.com/api/markdown-image/sai/en/users/sitecoreai/images/Testcustomdata.png)

    - **Load profile** - enter the visitor's client ID or profile ID.

        You can retrieve this from the JSON data in the profile details when using [inspect mode](https://doc.sitecore.com/sai/en/users/sitecoreai/audience-and-insights/profiles/view-profile-details.html#use-inspect-mode "Use inspect mode"). For more information, see [Search for a profile](https://doc.sitecore.com/sai/en/users/sitecoreai/view-filter-and-search-profiles.html#search-for-a-profile).

    - **Generate profile** - use AI to generate a visitor profile using a natural language prompt.
6. If you selected **Generate profile**:
    - Enter a prompt describing the profile you want to test against.

        Example: *A female visitor from Copenhagen*

    - Click **Generate**.
7. The generated or loaded profile is displayed in the **Context** section. Click **Run test** to start testing.
8. On the **Response** tab, review the returned test results.

## Publish a custom value

Publish a custom value to make it available for use as an input in component personalization decision tables.

To publish a custom value:

1. In the navigation menu, click **Optimization**. 
2. In the left-hand pane, click **Custom values**.
3. On the **Custom Values** page, open the draft custom value you want to publish.
4. Click **Publish**.
5. Click **Confirm publish**.

The custom value status changes to *Published*. You can now use it as an input in a decision table.

## Duplicate a custom value

Duplicate a custom value to create a copy that you can modify without changing the original.

To duplicate a custom value:

1. In the navigation menu, click **Optimization**. 
2. In the left-hand pane, click **Custom values**.
3. On the **Custom Values** page, open the custom value you want to duplicate.
4. Click the vertical ellipsis icon :mdiDotsVertical: > **Duplicate custom data**.
5. Enter a name for the custom value.
6. Click **Create**.
7. Make any required changes in the code editor.
8. Click **Save**.

## Delete a custom value

Delete custom values that are no longer needed. This action is permanent and cannot be undone.

To delete a custom value:

1. In the navigation menu, click **Optimization**. 
2. In the left-hand pane, click **Custom values**.
3. On the **Custom Values** page, open the custom data you want to delete.
4. Click the vertical ellipsis icon :mdiDotsVertical: > **Delete custom value**
5. In the confirmation dialog, click **Delete custom value**.