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

uip df files

「uip df files」の構文とオプション - Data Fabric レコード ファイル フィールドの BLOB 添付ファイルを管理します。

uip df files は、レコードのファイル フィールドに格納された BLOB 添付ファイルを管理します。3 つの動詞はすべて同じ 3 つの位置引数 (エンティティ ID、レコード ID、フィールド名 (大文字と小文字を区別) を受け取ります。フィールド名は uip df entities getで検出できます。

概要​

uip df files upload <entity-id> <record-id> <field-name> -f <path> [--folder-key <key>]
uip df files download <entity-id> <record-id> <field-name> [--destination <path>] [--folder-key <key>]
uip df files delete <entity-id> <record-id> <field-name> -y --reason <text> [--folder-key <key>]
uip df files upload <entity-id> <record-id> <field-name> -f <path> [--folder-key <key>]
uip df files download <entity-id> <record-id> <field-name> [--destination <path>] [--folder-key <key>]
uip df files delete <entity-id> <record-id> <field-name> -y --reason <text> [--folder-key <key>]

すべての動詞は --folder-key <key> (フォルダー範囲のエンティティに属するレコードの場合はフォルダー GUID) も受け入れます。

動詞​

動詞目的
uploadファイルをレコード フィールドにアップロードします。
downloadレコード フィールドに添付されたファイルをダウンロードします。
deleteレコード フィールドに添付されたファイルを削除します。

uip df files upload​

ファイルをレコード フィールドにアップロードします。

引数​

名前Required目的
<entity-id>○エンティティ ID (UUID)。
<record-id>○レコード ID (UUID)。
<field-name>○ファイル フィールドの名前です (大文字と小文字が区別されます)。

オプション​

Short長押し値 (Value)既定 (Default)説明
-f--fileパス必須アップロードするファイルへのパスです。
—--folder-keyキー—エンティティを含むフォルダーのフォルダー キー (GUID) (フォルダー範囲のエンティティの場合)。
uip df files upload a1b2c3d4-0000-0000-0000-000000000001 \
    b2c3d4e5-0000-0000-0000-000000000001 invoice \
    --file ./invoice.pdf
uip df files upload a1b2c3d4-0000-0000-0000-000000000001 \
    b2c3d4e5-0000-0000-0000-000000000001 invoice \
    --file ./invoice.pdf

データシェイプ(--output json)​

{
  "Code": "FileUploaded",
  "Data": {
    "EntityId": "a1b2c3d4-0000-0000-0000-000000000001",
    "RecordId": "b2c3d4e5-0000-0000-0000-000000000001",
    "FieldName": "invoice",
    "FileName": "invoice.pdf"
  }
}
{
  "Code": "FileUploaded",
  "Data": {
    "EntityId": "a1b2c3d4-0000-0000-0000-000000000001",
    "RecordId": "b2c3d4e5-0000-0000-0000-000000000001",
    "FieldName": "invoice",
    "FileName": "invoice.pdf"
  }
}

uip df files download​

レコード フィールドに添付されたファイルをダウンロードします。

引数​

名前Required目的
<entity-id>○エンティティ ID (UUID)。
<record-id>○レコード ID (UUID)。
<field-name>○ファイル フィールドの名前です (大文字と小文字が区別されます)。

オプション​

Short長押し値 (Value)既定 (Default)説明
—--destinationパス<record-id>_<field-name>.bin出力ファイル パス。
—--folder-keyキー—エンティティを含むフォルダーのフォルダー キー (GUID) (フォルダー範囲のエンティティの場合)。
uip df files download a1b2c3d4-0000-0000-0000-000000000001 \
    b2c3d4e5-0000-0000-0000-000000000001 invoice \
    --destination ./invoice.pdf

# Default destination
uip df files download a1b2c3d4-0000-0000-0000-000000000001 \
    b2c3d4e5-0000-0000-0000-000000000001 invoice
uip df files download a1b2c3d4-0000-0000-0000-000000000001 \
    b2c3d4e5-0000-0000-0000-000000000001 invoice \
    --destination ./invoice.pdf

# Default destination
uip df files download a1b2c3d4-0000-0000-0000-000000000001 \
    b2c3d4e5-0000-0000-0000-000000000001 invoice

データシェイプ(--output json)​

{
  "Code": "FileDownloaded",
  "Data": {
    "EntityId": "a1b2c3d4-0000-0000-0000-000000000001",
    "RecordId": "b2c3d4e5-0000-0000-0000-000000000001",
    "FieldName": "invoice",
    "OutputPath": "./invoice.pdf"
  }
}
{
  "Code": "FileDownloaded",
  "Data": {
    "EntityId": "a1b2c3d4-0000-0000-0000-000000000001",
    "RecordId": "b2c3d4e5-0000-0000-0000-000000000001",
    "FieldName": "invoice",
    "OutputPath": "./invoice.pdf"
  }
}

uip df files delete​

レコード フィールドに添付されたファイルを削除します。レコード自体は影響を受けず、名前付きフィールドの BLOB のみが削除されます。

引数​

名前Required目的
<entity-id>○エンティティ ID (UUID)。
<record-id>○レコード ID (UUID)。
<field-name>○ファイル フィールドの名前です (大文字と小文字が区別されます)。

オプション​

Short長押し値 (Value)既定 (Default)説明
-y--yesフラグ—必須。これは元に戻せない操作であることを確認します。
—--reasontext—必須。削除の理由 — 呼び出し元がログに記録できるように応答でエコーバックされます。
—--folder-keyキー—エンティティを含むフォルダーのフォルダー キー (GUID) (フォルダー範囲のエンティティの場合)。
uip df files delete a1b2c3d4-0000-0000-0000-000000000001 \
    b2c3d4e5-0000-0000-0000-000000000001 invoice \
    --yes --reason "wrong file attached"
uip df files delete a1b2c3d4-0000-0000-0000-000000000001 \
    b2c3d4e5-0000-0000-0000-000000000001 invoice \
    --yes --reason "wrong file attached"

データシェイプ(--output json)​

{
  "Code": "FileDeleted",
  "Data": {
    "EntityId": "a1b2c3d4-0000-0000-0000-000000000001",
    "RecordId": "b2c3d4e5-0000-0000-0000-000000000001",
    "FieldName": "invoice",
    "Reason": "wrong file attached"
  }
}
{
  "Code": "FileDeleted",
  "Data": {
    "EntityId": "a1b2c3d4-0000-0000-0000-000000000001",
    "RecordId": "b2c3d4e5-0000-0000-0000-000000000001",
    "FieldName": "invoice",
    "Reason": "wrong file attached"
  }
}
  • uip df entities — entities getを使用してフィールド名を検出します。
  • uip df records — これらの添付ファイルを所有するレコードを管理します。

参照​

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

接続

ヘルプ リソース サポート

学習する UiPath アカデミー

質問する UiPath フォーラム

最新情報を取得