- Overview
- Get started
- Concepts
- Using UiPath CLI
- How-to guides
- CI/CD recipes
- Command reference
- Overview
- Exit codes
- Global options
- uip codedagent
- uip coder
- uip context-grounding
- entities
- records
- files
- choice-sets
- connectors
- uip docsai
- uip function
- uip guardrails
- uip llm-configuration
- uip llm-gateway
- uip maestro authoring
- uip maestro registry
- uip model-hub
- uip ont
- activities find
- activities get-default-xaml
- analyze
- analyzer-rules list
- build
- cleanup
- data-fabric-entities install
- data-fabric-entities list
- files diff
- get-library-object-repository
- get-object-repository
- init
- instances list
- pack
- packages inspect
- packages install
- packages versions
- publish
- remote
- restore
- run, debug & execution
- settings
- studio start
- templates search
- test-data add-entity
- test-data add-queue
- test-data add-variation
- tm
- uia
- validate
- workflow-examples get
- workflow-examples list
- uip resources
- uip tasks
- uip traces
- uip traces feedback
- Migration
- Reference & support
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
--localhas noNumberId. 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 deleteandchoice-set-values deletetake--yesand no--reason.choice-set-values deletetakes--namesinstead 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-keyand--include-folders,--reasonand--ids, and--limit,--offset, and--cursoronlist-values. choice-sets updateandchoice-set-values updatehave no--localform.- A choice set imported from a tenant with
uip solution resources add --source remotecan 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.ErrorCode | Cause |
|---|---|
CHOICE_SET_NOT_FOUND | The solution has no choice set of that name. |
CHOICE_SET_NAME_TAKEN | A choice set or an entity of the solution already has the name, ignoring case. |
CHOICE_SET_VALUE_NOT_FOUND | A name passed to --names is not a value of the choice set. Nothing is removed. |
CHOICE_SET_VALUE_NAME_TAKEN | The choice set already has a value of that name. |
CHOICE_SET_IN_USE | An entity field of the solution still references the choice set. |
INVALID_NAME | The name is not 3 to 100 letters and digits. |
NOT_LOCALLY_AUTHORED | The 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
| Short | Long | Value | Default | Description |
|---|---|---|---|---|
| — | --folder-key | key | — | Folder key (GUID) to scope the listing to a specific folder. Mutually exclusive with --include-folders. |
| — | --include-folders | flag | off | List tenant-level choice sets together with choice sets from every folder you can see. Mutually exclusive with --folder-key. |
| — | --local | flag | off | List 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
| Name | Required | Purpose |
|---|---|---|
<choice-set-id> | yes | Choice set ID (UUID). With --local, the choice set name. |
Options
| Short | Long | Value | Default | Description |
|---|---|---|---|---|
-l | --limit | number | 50 | Number of values to return per page. |
-o | --offset | number | — | Start from the page containing this record index (rounded down to a page boundary). Mutually exclusive with --cursor. |
| — | --cursor | cursor | — | Pagination cursor value from a previous response's nextCursor.value. |
| — | --folder-key | key | — | Folder key (GUID) of the folder containing the choice set, for folder-scoped choice sets. |
| — | --local | flag | off | List 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
| Name | Required | Purpose |
|---|---|---|
<name> | yes | Choice set name (starts with a letter; letters, numbers, and underscores only). |
Options
| Short | Long | Value | Default | Description |
|---|---|---|---|---|
| — | --display-name | text | — | Human-readable display name. |
| — | --description | text | — | Choice set description. |
| — | --folder-key | uuid | — | Folder to place the choice set in. Defaults to the tenant-level folder. |
| — | --local | flag | off | Create 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
| Name | Required | Purpose |
|---|---|---|
<choice-set-id> | yes | Choice set ID (UUID). |
Options
| Short | Long | Value | Default | Description |
|---|---|---|---|---|
| — | --display-name | text | — | Required. New display name. |
| — | --description | text | — | Required. New description. |
| — | --folder-key | key | — | Folder key (GUID) of the folder containing the choice set, for folder-scoped choice sets. |
--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
| Name | Required | Purpose |
|---|---|---|
<choice-set-id> | yes | Choice set ID (UUID). With --local, the choice set name. |
Options
| Short | Long | Value | Default | Description |
|---|---|---|---|---|
-y | --yes | flag | — | Required. Acknowledges this is an irreversible operation. |
| — | --reason | text | — | 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-key | key | — | Folder key (GUID) of the folder containing the choice set, for folder-scoped choice sets. |
| — | --local | flag | off | Delete 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
| Name | Required | Purpose |
|---|---|---|
<choice-set-id> | yes | Choice set ID (UUID). With --local, the choice set name. |
<name> | yes | Value name (starts with a letter; letters and numbers only). |
Options
| Short | Long | Value | Default | Description |
|---|---|---|---|---|
| — | --display-name | text | — | Human-readable display name. With --local, defaults to the value name. |
| — | --folder-key | key | — | Folder key (GUID) of the folder containing the choice set. Required when the choice set is folder-scoped. |
| — | --local | flag | off | Add 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
| Name | Required | Purpose |
|---|---|---|
<choice-set-id> | yes | Choice set ID (UUID). |
<value-id> | yes | Choice set value ID (UUID). Find it with choice-sets list-values <choice-set-id>. |
<display-name> | yes | New display name for the value. |
Options
| Short | Long | Value | Default | Description |
|---|---|---|---|---|
| — | --folder-key | key | — | 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
| Name | Required | Purpose |
|---|---|---|
<choice-set-id> | yes | Choice set ID (UUID). With --local, the choice set name. |
Options
| Short | Long | Value | Default | Description |
|---|---|---|---|---|
| — | --ids | id,id,... | — | Required for a tenant delete. Comma-separated list of value IDs to delete. Not accepted with --local. |
| — | --names | names... | — | 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 | --yes | flag | — | Required. Acknowledges this is an irreversible operation. |
| — | --reason | text | — | 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-key | key | — | Folder key (GUID) of the folder containing the choice set. Required when the choice set is folder-scoped. |
| — | --local | flag | off | Delete 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.
Related
uip df entities—CHOICE_SET_SINGLE/CHOICE_SET_MULTIPLEfields reference a choice set bychoiceSetId.uip df records— insert/update record values using a choice value'snumberId.
See also
- Synopsis
- Local choice sets (
--local) - uip df choice-sets
- uip df choice-sets list
- uip df choice-sets list-values
- uip df choice-sets create
- uip df choice-sets update
- uip df choice-sets delete
- uip df choice-set-values
- uip df choice-set-values create
- uip df choice-set-values update
- uip df choice-set-values delete
- Local choice set examples
- Related
- See also