UiPath Documentation
uipath-cli
latest
false
UiPath-CLI-Benutzerhandbuch
Wichtig :
Dieser Inhalt wurde maschinell übersetzt. Es kann 1–2 Wochen dauern, bis die Lokalisierung neu veröffentlichter Inhalte verfügbar ist.

UIP-df-Dateien

Syntax und Optionen für „uip df files“, das Blob-Anhänge für Data Fabric-Datensatzdateifelder verwaltet.

uip df files Verwaltet Blob-Anhänge, die im Dateifeld eines Datensatzes gespeichert sind. Alle drei Verben verwenden dieselben drei Positionargumente – Entitäts-ID, Datensatz-ID und Feldname (Groß-/Kleinschreibung beachten). Feldnamen sind über uip df entities get auffindbar.

Zusammenfassung​

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>]

Every verb also accepts --folder-key <key> (a folder GUID, for records that belong to a folder-scoped entity).

Verben​

VerbZweck
uploadLaden Sie eine Datei in ein Datensatzfeld hoch.
downloadLaden Sie die Datei herunter, die an ein Datensatzfeld angehängt ist.
deleteLöschen Sie die Datei, die an ein Datensatzfeld angehängt ist.

UIP-DF-Dateien hochladen​

Laden Sie eine Datei in ein Datensatzfeld hoch.

Argumente​

NameErforderlichZweck
<entity-id>jaEntitäts-ID (UUID).
<record-id>jaDatensatz-ID (UUID).
<field-name>jaName des Dateifelds (Groß-/Kleinschreibung wird beachtet).

Optionen​

ShortLongWertStandardBeschreibung
-f--filePfaderforderlichPfad zur hochzuladenden Datei.
–--folder-keySchlüssel–Folder key (GUID) of the folder containing the entity, for folder-scoped entities.

Beispiele​

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

Datenform (--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-Dateien herunterladen​

Laden Sie die Datei herunter, die an ein Datensatzfeld angehängt ist.

Argumente​

NameErforderlichZweck
<entity-id>jaEntitäts-ID (UUID).
<record-id>jaDatensatz-ID (UUID).
<field-name>jaName des Dateifelds (Groß-/Kleinschreibung wird beachtet).

Optionen​

ShortLongWertStandardBeschreibung
–--destinationPfad<record-id>_<field-name>.binPfad der Ausgabedatei.
–--folder-keySchlüssel–Folder key (GUID) of the folder containing the entity, for folder-scoped entities.

Beispiele​

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

Datenform (--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-Dateien löschen​

Löschen Sie die Datei, die an ein Datensatzfeld angehängt ist. Der Datensatz selbst ist nicht betroffen – nur der Blob auf dem benannten Feld wird entfernt.

Argumente​

NameErforderlichZweck
<entity-id>jaEntitäts-ID (UUID).
<record-id>jaDatensatz-ID (UUID).
<field-name>jaName des Dateifelds (Groß-/Kleinschreibung wird beachtet).

Optionen​

ShortLongWertStandardBeschreibung
-y--yesMarkieren–Required. Acknowledges this is an irreversible operation.
–--reasontext–Required. Reason for the deletion — echoed back in the response so the caller can log it.
–--folder-keySchlüssel–Folder key (GUID) of the folder containing the entity, for folder-scoped entities.

Beispiele​

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"

Datenform (--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"
  }
}

Siehe auch​

War diese Seite hilfreich?

Verbinden

Benötigen Sie Hilfe? Support

Möchten Sie lernen? UiPath Academy

Haben Sie Fragen? UiPath-Forum

Auf dem neuesten Stand bleiben