UiPath Documentation
uipath-cli
latest
false
UiPath CLI ユーザー ガイド
重要 :
このコンテンツは機械翻訳によって処理されています。 新しいコンテンツの翻訳は、およそ 1 ~ 2 週間で公開されます。

uip df チョイス セット

Data Fabric の列挙値リストを管理する「uip df choice-sets」および「uip df choice-set-values」の構文とオプション。

uip df choice-set-valuesuip df choice-setsData Fabric チョイス セット — エンティティの CHOICE_SET_SINGLE/CHOICE_SET_MULTIPLE フィールドによって参照される列挙値のリストです。choice-sets はセット自体 (そのメタデータと許可値のリスト) を管理します。 choice-set-values セット内の個々の値を管理します。

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.

概要​

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

すべての動詞は --folder-key <key> も受け入れます (フォルダー スコープのチョイス セットの場合はフォルダー GUID)。

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.

テナント フォームとの違い

  • 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.ErrorCode原因
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 チョイス セット​

UIP DF チョイス セット リスト​

チョイス セットのリストを表示します。既定ではテナント レベルのチョイス セットです。スコープを 1 つのフォルダーに --folder-key すると、すべてのフォルダーのチョイス セット --include-folders テナント レベルのチョイス セットが含まれます。

オプション​
Short長押し値 (Value)既定 (Default)説明
—--folder-keyキー—フォルダー キー (GUID) - コンポーネントのスコープを特定のフォルダーに設定します。--include-foldersと相互に排他的です。
—--include-foldersフラグ無効テナント レベルのチョイス セットと、表示されているすべてのフォルダーのチョイス セットを表示します。--folder-keyと相互に排他的です。
—--localフラグ無効List the choice sets authored in the solution on disk instead of the tenant.
uip df choice-sets list
uip df choice-sets list
データシェイプ(--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 行は生のキャメルケース SDK オブジェクトです。各行のidは、CHOICE_SET_SINGLE/CHOICE_SET_MULTIPLE エンティティ フィールドにchoiceSetIdとして渡す値、または以下のエンティティ フィールドに渡す値list-valuesです。

uip df チョイス セット list-values​

チョイス セットの値を一覧表示する。カーソルベースのページネーションがサポートされています。

引数​
名前Required目的
<choice-set-id>○Choice set ID (UUID). With --local, the choice set name.
オプション​
Short長押し値 (Value)既定 (Default)説明
-l--limitNumber50ページあたりに返される値の数です。
-o--offsetNumber—このレコード索引を含むページから開始します (ページ境界に切り捨て)。--cursorと相互に排他的です。
—--cursorカーソル—前の回答の nextCursor.valueから取得したページネーションのカーソル値です。
—--folder-keyキー—チョイス セットを含むフォルダーのフォルダー キー (GUID) (フォルダー範囲のチョイス セットの場合)。
—--localフラグ無効List the values of a choice set authored in the solution on disk. <choice-set-id> is then the choice set name.
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
データシェイプ(--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は、レコードを フィールドに挿入または更新するときに渡す整数ですCHOICE_SET_SINGLE CHOICE_SET_MULTIPLE( の場合は配列 。

uip df チョイス セット 作成​

新しいチョイス セットを作成します。

引数​
名前Required目的
<name>○チョイス セット名 (文字で始まり、文字、数字、アンダースコアのみ)。
オプション​
Short長押し値 (Value)既定 (Default)説明
—--display-nametext—人間が判読できる表示名。
—--descriptiontext—チョイス セットの説明。
—--folder-keyUUID—チョイス セットを配置するフォルダーです。既定ではテナント レベルのフォルダーです。
—--localフラグ無効Create the choice set in the solution on disk instead of the tenant.
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"
データシェイプ(--output json)​
{
  "Code": "ChoiceSetCreated",
  "Data": { "ID": "c1d2e3f4-0000-0000-0000-000000000001" }
}
{
  "Code": "ChoiceSetCreated",
  "Data": { "ID": "c1d2e3f4-0000-0000-0000-000000000001" }
}

返されたIDは、CHOICE_SET_SINGLE/CHOICE_SET_MULTIPLEエンティティ フィールドのchoiceSetIdとして使用されます。下の choice-set-values createを使用して値を追加します。

UIP DF チョイス セットの更新​

チョイス セットの表示名と説明を更新します。

引数​
名前Required目的
<choice-set-id>○チョイス セット ID (UUID)。
オプション​
Short長押し値 (Value)既定 (Default)説明
—--display-nametext—必須。新しい表示名。
—--descriptiontext—必須。新しい説明。
—--folder-keyキー—チョイス セットを含むフォルダーのフォルダー キー (GUID) (フォルダー範囲のチョイス セットの場合)。
重要:

--display-name と --description の両方を一緒に渡す必要があります。部分的な更新はありません。サーバーは、説明のみの更新を DisplayName is required.で拒否し、表示名のみの更新を内部サーバー エラーで拒否します。一方のフィールドのみを変更するには、まずもう一方のフィールドの現在値を choice-sets listで読み取ってから、両方を再送信します。

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"
データシェイプ(--output json)​
{
  "Code": "ChoiceSetUpdated",
  "Data": { "ID": "c1d2e3f4-0000-0000-0000-000000000001" }
}
{
  "Code": "ChoiceSetUpdated",
  "Data": { "ID": "c1d2e3f4-0000-0000-0000-000000000001" }
}

UIP DF チョイス セットの削除​

チョイス セットを完全に削除する。これは元に 戻せません。

引数​
名前Required目的
<choice-set-id>○Choice set ID (UUID). With --local, the choice set name.
オプション​
Short長押し値 (Value)既定 (Default)説明
-y--yesフラグ—必須。これは元に戻せない操作であることを確認します。
—--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-keyキー—チョイス セットを含むフォルダーのフォルダー キー (GUID) (フォルダー範囲のチョイス セットの場合)。
—--localフラグ無効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.

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"
データシェイプ(--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 チョイス セット値​

uip df choice-set-values 作成​

チョイス セットに値を追加します。

引数​
名前Required目的
<choice-set-id>○Choice set ID (UUID). With --local, the choice set name.
<name>○値の名前です (文字で始まり、文字と数字のみ)。
オプション​
Short長押し値 (Value)既定 (Default)説明
—--display-nametext—Human-readable display name. With --local, defaults to the value name.
—--folder-keyキー—チョイス セットを含むフォルダーのフォルダー キー (GUID)。チョイス セットがフォルダー範囲の場合に必要です。
—--localフラグ無効Add the value to a choice set authored in the solution on disk. <choice-set-id> is then the choice set name.
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"
データシェイプ(--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
  }
}

返される numberId は、レコードを CHOICE_SET_SINGLE フィールド (または配列、 CHOICE_SET_MULTIPLEの場合は ) に挿入または更新するときに渡す整数です。

uip df choice-set-values の更新​

既存のチョイス セットの値の表示名を更新します。

引数​
名前Required目的
<choice-set-id>○チョイス セット ID (UUID)。
<value-id>○チョイス セット値 ID (UUID)。choice-sets list-values <choice-set-id>で検索する
<display-name>○値の新しい表示名です。
オプション​
Short長押し値 (Value)既定 (Default)説明
—--folder-keyキー—チョイス セットを含むフォルダーのフォルダー キー (GUID)。チョイス セットがフォルダー範囲の場合に必要です。
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"
データシェイプ(--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 の削除​

チョイス セットから 1 つ以上の値を削除します。これは元に 戻せません。

引数​
名前Required目的
<choice-set-id>○Choice set ID (UUID). With --local, the choice set name.
オプション​
Short長押し値 (Value)既定 (Default)説明
—--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--yesフラグ—必須。これは元に戻せない操作であることを確認します。
—--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-keyキー—チョイス セットを含むフォルダーのフォルダー キー (GUID)。チョイス セットがフォルダー範囲の場合に必要です。
—--localフラグ無効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.

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"
データシェイプ(--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​

これらのコマンドは、ソリューション ディレクトリ内からログインなしで実行されます。

# 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 フィールドは、choiceSetIdによって設定されたチョイスを参照します。
  • uip df records — チョイス値の numberIdを使用してレコード値を挿入/更新します。

参照​

このページは役に立ちましたか?

接続

ヘルプ リソース サポート(opens in new window)

学習する UiPath アカデミー(opens in new window)

質問する UiPath フォーラム(opens in new window)

最新情報を取得