UiPath Documentation
uipath-cli
2026.10
false
UiPath CLI user guide

uip df choice-sets

Syntax and options for `uip df choice-sets` and `uip df choice-set-values`, which manage Data Fabric's enumerated value lists.

uip df choice-sets and uip df choice-set-values manage Data Fabric choice sets — the enumerated value lists referenced by CHOICE_SET_SINGLE/CHOICE_SET_MULTIPLE fields on an entity. choice-sets manages the set itself (its metadata and the list of allowed values); choice-set-values manages the individual values within a set.

With --local, the list, list-values, create, and delete verbs act on choice sets authored in a solution on disk instead of the tenant. Refer to Local choice sets.

Synopsis​

uip df choice-sets list [--folder-key <key> | --include-folders]
uip df choice-sets list-values <choice-set-id> [-l <n>] [-o <n> | --cursor <cursor>] [--folder-key <key>]
uip df choice-sets create <name> [--display-name <name>] [--description <text>] [--folder-key <key>]
uip df choice-sets update <choice-set-id> --display-name <name> --description <text> [--folder-key <key>]
uip df choice-sets delete <choice-set-id> -y --reason <text> [--folder-key <key>]

uip df choice-set-values create <choice-set-id> <name> [--display-name <name>] [--folder-key <key>]
uip df choice-set-values update <choice-set-id> <value-id> <display-name> [--folder-key <key>]
uip df choice-set-values delete <choice-set-id> --ids <id,id,...> -y --reason <text> [--folder-key <key>]

# Choice sets authored in the solution on disk
uip df choice-sets list --local
uip df choice-sets list-values <name> --local
uip df choice-sets create <name> --local [--display-name <name>] [--description <text>]
uip df choice-sets delete <name> --local -y
uip df choice-set-values create <name> <value-name> --local [--display-name <name>]
uip df choice-set-values delete <name> --local --names <names...> -y
uip df choice-sets list [--folder-key <key> | --include-folders]
uip df choice-sets list-values <choice-set-id> [-l <n>] [-o <n> | --cursor <cursor>] [--folder-key <key>]
uip df choice-sets create <name> [--display-name <name>] [--description <text>] [--folder-key <key>]
uip df choice-sets update <choice-set-id> --display-name <name> --description <text> [--folder-key <key>]
uip df choice-sets delete <choice-set-id> -y --reason <text> [--folder-key <key>]

uip df choice-set-values create <choice-set-id> <name> [--display-name <name>] [--folder-key <key>]
uip df choice-set-values update <choice-set-id> <value-id> <display-name> [--folder-key <key>]
uip df choice-set-values delete <choice-set-id> --ids <id,id,...> -y --reason <text> [--folder-key <key>]

# Choice sets authored in the solution on disk
uip df choice-sets list --local
uip df choice-sets list-values <name> --local
uip df choice-sets create <name> --local [--display-name <name>] [--description <text>]
uip df choice-sets delete <name> --local -y
uip df choice-set-values create <name> <value-name> --local [--display-name <name>]
uip df choice-set-values delete <name> --local --names <names...> -y

Every verb also accepts --folder-key <key> (a folder GUID, for a folder-scoped choice set).

Local choice sets (--local)​

--local switches a verb from the tenant to the choice sets authored in the solution on disk. No login is required, and nothing exists on a tenant until the solution deploys. The command must run from inside the solution directory.

A locally authored choice set is one file, resources/solution_folder/choiceSet/<Name>.json.

Differences from the tenant form:

  • The <choice-set-id> argument is the choice set name, because nothing has an ID until deploy. Names are 3 to 100 letters and digits, and are unique in the solution, ignoring case. An entity and a choice set cannot share a name.
  • A value added with --local has no NumberId. The deploy assigns it: 0, 1, 2, and so on in file order for a new choice set, and the next free number for a choice set that is already deployed.
  • choice-sets delete and choice-set-values delete take --yes and no --reason.
  • choice-set-values delete takes --names instead of --ids, because local values have no ID.
  • Options that address the tenant fail with --local. The command names the offending option instead of ignoring it: --folder-key and --include-folders, --reason and --ids, and --limit, --offset, and --cursor on list-values.
  • choice-sets update and choice-set-values update have no --local form.
  • A choice set imported from a tenant with uip solution resources add --source remote can be listed and read. The local commands do not change or delete it.

A refused local command writes nothing. The failure carries the refusal code in Context.ErrorCode, next to the CLI-wide ErrorCode. ErrorCode is not_found for a code that ends in _NOT_FOUND, and invalid_argument for the rest.

Context.ErrorCodeCause
CHOICE_SET_NOT_FOUNDThe solution has no choice set of that name.
CHOICE_SET_NAME_TAKENA choice set or an entity of the solution already has the name, ignoring case.
CHOICE_SET_VALUE_NOT_FOUNDA name passed to --names is not a value of the choice set. Nothing is removed.
CHOICE_SET_VALUE_NAME_TAKENThe choice set already has a value of that name.
CHOICE_SET_IN_USEAn entity field of the solution still references the choice set.
INVALID_NAMEThe name is not 3 to 100 letters and digits.
NOT_LOCALLY_AUTHOREDThe choice set was imported from a tenant. Change it on the tenant.

Refer to Local choice set examples for the commands and their output.

uip df choice-sets​

uip df choice-sets list​

List choice sets. Defaults to tenant-level choice sets; --folder-key scopes to one folder, --include-folders includes every folder's choice sets alongside tenant-level ones.

Options​
ShortLongValueDefaultDescription
—--folder-keykey—Folder key (GUID) to scope the listing to a specific folder. Mutually exclusive with --include-folders.
—--include-foldersflagoffList tenant-level choice sets together with choice sets from every folder you can see. Mutually exclusive with --folder-key.
—--localflagoffList the choice sets authored in the solution on disk instead of the tenant.
Example​
uip df choice-sets list
uip df choice-sets list
Data shape (--output json)​
{
  "Code": "ChoiceSetList",
  "Data": [
    {
      "id": "c1d2e3f4-0000-0000-0000-000000000001",
      "name": "ExpenseTypes",
      "displayName": "Expense Types",
      "description": "Categories of expenses",
      "folderId": "f1000000-0000-0000-0000-000000000001",
      "createdBy": "u1000000-0000-0000-0000-000000000001",
      "updatedBy": "u1000000-0000-0000-0000-000000000001",
      "createdTime": "2026-01-01T00:00:00Z",
      "updatedTime": "2026-01-02T00:00:00Z"
    }
  ]
}
{
  "Code": "ChoiceSetList",
  "Data": [
    {
      "id": "c1d2e3f4-0000-0000-0000-000000000001",
      "name": "ExpenseTypes",
      "displayName": "Expense Types",
      "description": "Categories of expenses",
      "folderId": "f1000000-0000-0000-0000-000000000001",
      "createdBy": "u1000000-0000-0000-0000-000000000001",
      "updatedBy": "u1000000-0000-0000-0000-000000000001",
      "createdTime": "2026-01-01T00:00:00Z",
      "updatedTime": "2026-01-02T00:00:00Z"
    }
  ]
}

Data rows are raw, camelCase SDK objects. Each row's id is the value to pass as choiceSetId on a CHOICE_SET_SINGLE/CHOICE_SET_MULTIPLE entity field, or to list-values below.

uip df choice-sets list-values​

List the values of a choice set. Supports cursor-based pagination.

Arguments​
NameRequiredPurpose
<choice-set-id>yesChoice set ID (UUID). With --local, the choice set name.
Options​
ShortLongValueDefaultDescription
-l--limitnumber50Number of values to return per page.
-o--offsetnumber—Start from the page containing this record index (rounded down to a page boundary). Mutually exclusive with --cursor.
—--cursorcursor—Pagination cursor value from a previous response's nextCursor.value.
—--folder-keykey—Folder key (GUID) of the folder containing the choice set, for folder-scoped choice sets.
—--localflagoffList the values of a choice set authored in the solution on disk. <choice-set-id> is then the choice set name.
Example​
uip df choice-sets list-values c1d2e3f4-0000-0000-0000-000000000001 --limit 2
uip df choice-sets list-values c1d2e3f4-0000-0000-0000-000000000001 --limit 2
Data shape (--output json)​
{
  "Code": "ChoiceSetValues",
  "Data": {
    "items": [
      { "id": "v1000000-0000-0000-0000-000000000001", "name": "travel", "displayName": "Travel", "numberId": 0 },
      { "id": "v1000000-0000-0000-0000-000000000002", "name": "meals", "displayName": "Meals", "numberId": 1 }
    ],
    "totalCount": 2,
    "hasNextPage": false
  }
}
{
  "Code": "ChoiceSetValues",
  "Data": {
    "items": [
      { "id": "v1000000-0000-0000-0000-000000000001", "name": "travel", "displayName": "Travel", "numberId": 0 },
      { "id": "v1000000-0000-0000-0000-000000000002", "name": "meals", "displayName": "Meals", "numberId": 1 }
    ],
    "totalCount": 2,
    "hasNextPage": false
  }
}

numberId is the integer to pass when inserting or updating a record into a CHOICE_SET_SINGLE field — or in an array, for CHOICE_SET_MULTIPLE.

uip df choice-sets create​

Create a new choice set.

Arguments​
NameRequiredPurpose
<name>yesChoice set name (starts with a letter; letters, numbers, and underscores only).
Options​
ShortLongValueDefaultDescription
—--display-nametext—Human-readable display name.
—--descriptiontext—Choice set description.
—--folder-keyuuid—Folder to place the choice set in. Defaults to the tenant-level folder.
—--localflagoffCreate the choice set in the solution on disk instead of the tenant.
Example​
uip df choice-sets create ExpenseTypes \
    --display-name "Expense Types" \
    --description "Categories of expenses"
uip df choice-sets create ExpenseTypes \
    --display-name "Expense Types" \
    --description "Categories of expenses"
Data shape (--output json)​
{
  "Code": "ChoiceSetCreated",
  "Data": { "ID": "c1d2e3f4-0000-0000-0000-000000000001" }
}
{
  "Code": "ChoiceSetCreated",
  "Data": { "ID": "c1d2e3f4-0000-0000-0000-000000000001" }
}

The returned ID is used as choiceSetId on CHOICE_SET_SINGLE/CHOICE_SET_MULTIPLE entity fields. Add values to it with choice-set-values create, below.

uip df choice-sets update​

Update a choice set's display name and description.

Arguments​
NameRequiredPurpose
<choice-set-id>yesChoice set ID (UUID).
Options​
ShortLongValueDefaultDescription
—--display-nametext—Required. New display name.
—--descriptiontext—Required. New description.
—--folder-keykey—Folder key (GUID) of the folder containing the choice set, for folder-scoped choice sets.
Important:

--display-name and --description must both be passed together — there is no partial update. The server rejects a description-only update with DisplayName is required., and rejects a display-name-only update with an Internal Server Error. To change just one field, first read the other's current value with choice-sets list, then resend both.

Example​
uip df choice-sets update c1d2e3f4-0000-0000-0000-000000000001 \
    --display-name "Expense Categories" \
    --description "Categories of expenses"
uip df choice-sets update c1d2e3f4-0000-0000-0000-000000000001 \
    --display-name "Expense Categories" \
    --description "Categories of expenses"
Data shape (--output json)​
{
  "Code": "ChoiceSetUpdated",
  "Data": { "ID": "c1d2e3f4-0000-0000-0000-000000000001" }
}
{
  "Code": "ChoiceSetUpdated",
  "Data": { "ID": "c1d2e3f4-0000-0000-0000-000000000001" }
}

uip df choice-sets delete​

Delete a choice set outright. This is irreversible.

Arguments​
NameRequiredPurpose
<choice-set-id>yesChoice set ID (UUID). With --local, the choice set name.
Options​
ShortLongValueDefaultDescription
-y--yesflag—Required. Acknowledges this is an irreversible operation.
—--reasontext—Required for a tenant delete. Reason for the deletion — echoed back in the response so the caller can log it. Not accepted with --local.
—--folder-keykey—Folder key (GUID) of the folder containing the choice set, for folder-scoped choice sets.
—--localflagoffDelete a choice set authored in the solution on disk. <choice-set-id> is then the choice set name.

A tenant delete without --yes and --reason fails once and names both options.

Example​
uip df choice-sets delete c1d2e3f4-0000-0000-0000-000000000001 \
    --yes --reason "no longer used"
uip df choice-sets delete c1d2e3f4-0000-0000-0000-000000000001 \
    --yes --reason "no longer used"
Data shape (--output json)​
{
  "Code": "ChoiceSetDeleted",
  "Data": {
    "ID": "c1d2e3f4-0000-0000-0000-000000000001",
    "Reason": "no longer used"
  }
}
{
  "Code": "ChoiceSetDeleted",
  "Data": {
    "ID": "c1d2e3f4-0000-0000-0000-000000000001",
    "Reason": "no longer used"
  }
}

uip df choice-set-values​

uip df choice-set-values create​

Add a value to a choice set.

Arguments​
NameRequiredPurpose
<choice-set-id>yesChoice set ID (UUID). With --local, the choice set name.
<name>yesValue name (starts with a letter; letters and numbers only).
Options​
ShortLongValueDefaultDescription
—--display-nametext—Human-readable display name. With --local, defaults to the value name.
—--folder-keykey—Folder key (GUID) of the folder containing the choice set. Required when the choice set is folder-scoped.
—--localflagoffAdd the value to a choice set authored in the solution on disk. <choice-set-id> is then the choice set name.
Example​
uip df choice-set-values create c1d2e3f4-0000-0000-0000-000000000001 travel \
    --display-name "Travel"
uip df choice-set-values create c1d2e3f4-0000-0000-0000-000000000001 travel \
    --display-name "Travel"
Data shape (--output json)​
{
  "Code": "ChoiceSetValueCreated",
  "Data": {
    "id": "v1000000-0000-0000-0000-000000000001",
    "name": "travel",
    "displayName": "Travel",
    "numberId": 0
  }
}
{
  "Code": "ChoiceSetValueCreated",
  "Data": {
    "id": "v1000000-0000-0000-0000-000000000001",
    "name": "travel",
    "displayName": "Travel",
    "numberId": 0
  }
}

The returned numberId is the integer to pass when inserting or updating records into a CHOICE_SET_SINGLE field (or in an array, for CHOICE_SET_MULTIPLE).

uip df choice-set-values update​

Update the display name of an existing choice set value.

Arguments​
NameRequiredPurpose
<choice-set-id>yesChoice set ID (UUID).
<value-id>yesChoice set value ID (UUID). Find it with choice-sets list-values <choice-set-id>.
<display-name>yesNew display name for the value.
Options​
ShortLongValueDefaultDescription
—--folder-keykey—Folder key (GUID) of the folder containing the choice set. Required when the choice set is folder-scoped.
Example​
uip df choice-set-values update c1d2e3f4-0000-0000-0000-000000000001 \
    v1000000-0000-0000-0000-000000000001 "Business Travel"
uip df choice-set-values update c1d2e3f4-0000-0000-0000-000000000001 \
    v1000000-0000-0000-0000-000000000001 "Business Travel"
Data shape (--output json)​
{
  "Code": "ChoiceSetValueUpdated",
  "Data": {
    "id": "v1000000-0000-0000-0000-000000000001",
    "name": "travel",
    "displayName": "Business Travel",
    "numberId": 0
  }
}
{
  "Code": "ChoiceSetValueUpdated",
  "Data": {
    "id": "v1000000-0000-0000-0000-000000000001",
    "name": "travel",
    "displayName": "Business Travel",
    "numberId": 0
  }
}

uip df choice-set-values delete​

Delete one or more values from a choice set. This is irreversible.

Arguments​
NameRequiredPurpose
<choice-set-id>yesChoice set ID (UUID). With --local, the choice set name.
Options​
ShortLongValueDefaultDescription
—--idsid,id,...—Required for a tenant delete. Comma-separated list of value IDs to delete. Not accepted with --local.
—--namesnames...—Required with --local. Names of the values to delete, separated by spaces or commas. Put the choice set name before --names, because every word after it is read as a value name. Fails without --local.
-y--yesflag—Required. Acknowledges this is an irreversible operation.
—--reasontext—Required for a tenant delete. Reason for the deletion — echoed back in the response so the caller can log it. Not accepted with --local.
—--folder-keykey—Folder key (GUID) of the folder containing the choice set. Required when the choice set is folder-scoped.
—--localflagoffDelete values from a choice set authored in the solution on disk. <choice-set-id> is then the choice set name.

A tenant delete without --yes and --reason fails once and names both options.

Example​
uip df choice-set-values delete c1d2e3f4-0000-0000-0000-000000000001 \
    --ids v1000000-0000-0000-0000-000000000001,v1000000-0000-0000-0000-000000000002 \
    --yes --reason "deprecated categories"
uip df choice-set-values delete c1d2e3f4-0000-0000-0000-000000000001 \
    --ids v1000000-0000-0000-0000-000000000001,v1000000-0000-0000-0000-000000000002 \
    --yes --reason "deprecated categories"
Data shape (--output json)​
{
  "Code": "ChoiceSetValuesDeleted",
  "Data": {
    "ChoiceSetId": "c1d2e3f4-0000-0000-0000-000000000001",
    "DeletedIds": [
      "v1000000-0000-0000-0000-000000000001",
      "v1000000-0000-0000-0000-000000000002"
    ],
    "Reason": "deprecated categories"
  }
}
{
  "Code": "ChoiceSetValuesDeleted",
  "Data": {
    "ChoiceSetId": "c1d2e3f4-0000-0000-0000-000000000001",
    "DeletedIds": [
      "v1000000-0000-0000-0000-000000000001",
      "v1000000-0000-0000-0000-000000000002"
    ],
    "Reason": "deprecated categories"
  }
}

Local choice set examples​

These commands run from inside the solution directory, without a login.

# Create a choice set and add two values
uip df choice-sets create OrderStatus --local
uip df choice-set-values create OrderStatus Open --local --display-name "Open"
uip df choice-set-values create OrderStatus Closed --local

# List the choice sets, then the values of one
uip df choice-sets list --local
uip df choice-sets list-values OrderStatus --local

# Delete two values by name, then the choice set
uip df choice-set-values delete OrderStatus --local --names Open Closed --yes
uip df choice-sets delete OrderStatus --local --yes
# Create a choice set and add two values
uip df choice-sets create OrderStatus --local
uip df choice-set-values create OrderStatus Open --local --display-name "Open"
uip df choice-set-values create OrderStatus Closed --local

# List the choice sets, then the values of one
uip df choice-sets list --local
uip df choice-sets list-values OrderStatus --local

# Delete two values by name, then the choice set
uip df choice-set-values delete OrderStatus --local --names Open Closed --yes
uip df choice-sets delete OrderStatus --local --yes

choice-sets create --local returns the file it wrote:

{
  "Code": "InlineChoiceSetCreated",
  "Data": {
    "Name": "OrderStatus",
    "DisplayName": "OrderStatus",
    "ResourceFile": "/workspace/Sol/resources/solution_folder/choiceSet/OrderStatus.json"
  }
}
{
  "Code": "InlineChoiceSetCreated",
  "Data": {
    "Name": "OrderStatus",
    "DisplayName": "OrderStatus",
    "ResourceFile": "/workspace/Sol/resources/solution_folder/choiceSet/OrderStatus.json"
  }
}

choice-sets list --local returns one row per choice set, with Code: InlineChoiceSetList. Each row has Name, DisplayName, ValueCount, and ResourceFile. A row with Problem is a choice set file that does not read, and Problem says why.

choice-sets list-values --local returns every value, without pagination:

{
  "Code": "InlineChoiceSetValues",
  "Data": {
    "Name": "OrderStatus",
    "ResourceFile": "/workspace/Sol/resources/solution_folder/choiceSet/OrderStatus.json",
    "Values": [
      { "Name": "Open", "DisplayName": "Open" },
      { "Name": "Closed", "DisplayName": "Closed" }
    ]
  }
}
{
  "Code": "InlineChoiceSetValues",
  "Data": {
    "Name": "OrderStatus",
    "ResourceFile": "/workspace/Sol/resources/solution_folder/choiceSet/OrderStatus.json",
    "Values": [
      { "Name": "Open", "DisplayName": "Open" },
      { "Name": "Closed", "DisplayName": "Closed" }
    ]
  }
}

A value carries NumberId only when the file holds one for it.

choice-set-values create --local returns Code: InlineChoiceSetValueCreated with ChoiceSet, Name, DisplayName, and ResourceFile. choice-sets delete --local returns Code: InlineChoiceSetDeleted with Name and ResourceFile.

choice-set-values delete --local removes the values only when every name exists:

{
  "Code": "InlineChoiceSetValuesDeleted",
  "Data": {
    "ChoiceSet": "OrderStatus",
    "DeletedNames": ["Open", "Closed"],
    "ResourceFile": "/workspace/Sol/resources/solution_folder/choiceSet/OrderStatus.json"
  }
}
{
  "Code": "InlineChoiceSetValuesDeleted",
  "Data": {
    "ChoiceSet": "OrderStatus",
    "DeletedNames": ["Open", "Closed"],
    "ResourceFile": "/workspace/Sol/resources/solution_folder/choiceSet/OrderStatus.json"
  }
}

The response also carries a top-level Warning, because the local delete changes only the file. An upgrade adds values to a deployed choice set by name and removes none, so a choice set that is already deployed keeps the deleted value. The tenant form of choice-set-values delete removes it there.

  • uip df entities — CHOICE_SET_SINGLE/CHOICE_SET_MULTIPLE fields reference a choice set by choiceSetId.
  • uip df records — insert/update record values using a choice value's numberId.

See also​

Was this page helpful?

Connect

Need help? Support(opens in new window)

Want to learn? UiPath Academy(opens in new window)

Have questions? UiPath Forum(opens in new window)

Stay updated