UiPath Documentation
uipath-cli
latest
false
Guia do usuário da UiPath CLI
Importante :
Este conteúdo foi traduzido com auxílio de tradução automática. A localização de um conteúdo recém-publicado pode levar de 1 a 2 semanas para ficar disponível.

uip api-workflow registry

Syntax and options for `uip api-workflow registry resolve` and `stub`, which look up connector/DAP activities and emit ready-to-paste activity objects for an API Workflow JSON file.

uip api-workflow registry looks up DAP/connector activities (Studio Web's TypeCache) and emits API Workflow–shaped activity stubs you paste directly into a workflow's Sequence_1.do array. Typical flow: resolve a keyword to find a candidate activity, then stub its uiPathActivityTypeId to get the ready-to-paste object.

For vendor ("IntSvc") activities, get a connection UUID via uip is connections list <connector-key> and verify it with uip is connections ping <uuid> before passing --connection-id. The Http kind needs no connection. Generic activities (activityType: "Generic" in resolve output) apply an operation (list/create/retrieve/update/delete/...) to a connector object you choose via --object-name — discover objects with uip is resources list <connector-key> --connection-id <uuid>.

Resumo

uip api-workflow registry resolve <keyword> [options]
uip api-workflow registry stub    <activity-type-id> [options]
uip api-workflow registry resolve <keyword> [options]
uip api-workflow registry stub    <activity-type-id> [options]

uip api-workflow registry resolve

Search the API-workflow-compatible TypeCache by keyword and return candidate activities.

Argumentos

NameRequiredFinalidade
<keyword>simSubstring matched against display name, connector key, or object name.

Opções

BandeiraDescription
-l, --limit <n>Maximum results to return. Default 50.

Exemplo

uip api-workflow registry resolve "send email"
uip api-workflow registry resolve "send email"

Formato dos dados (--output json)

{
  "Code": "ActivityResolveSuccess",
  "Data": {
    "Keyword": "send email",
    "ResultCount": 3,
    "Matches": []
  }
}
{
  "Code": "ActivityResolveSuccess",
  "Data": {
    "Keyword": "send email",
    "ResultCount": 3,
    "Matches": []
  }
}

uip api-workflow registry stub

Emit a ready-to-paste activity object for a known uiPathActivityTypeId. Combines TypeCache (GUID and instance parameters) with Integration Service Elements metadata (full path, fields, multipart). Picks the Http kind for the HTTP connector and the IntSvc kind for vendor connectors.

Argumentos

NameRequiredFinalidade
<activity-type-id>simuiPathActivityTypeId returned by resolve.

Opções

BandeiraDescription
--connection-id <id>Connection UUID. Required for IntSvc-kind vendor activities.
--instance <n>Instance number, used to build the slot key and export bucket suffix. Default 1.
--slot-key <key>Override the default PascalCase slot key, for example GetNewestEmail_1.
--inputs <json>JSON object mapping field names to values, for example '{"message.subject":"hi"}'.
--object-name <name>Target connector object for Generic activities, for example tickets. Defaults to the object pinned in the activity definition, when present.
--resource-key <field>=<key>Bind a Solution-resource picker field to a solution resource key. Repeatable, for example --resource-key 'ReleaseName=87ec3255-...'.

Exemplo

uip api-workflow registry stub SendEmail --connection-id 87ec3255-1234-4abc-9def-0123456789ab
uip api-workflow registry stub SendEmail --connection-id 87ec3255-1234-4abc-9def-0123456789ab

Formato dos dados (--output json)

{
  "Code": "ActivityStubSuccess",
  "Data": {
    "kind": "IntSvc",
    "slotKey": "SendEmail_1",
    "exportBucketKey": "SendEmail_1_output",
    "activity": {},
    "parameters": {},
    "requestFields": [],
    "responseFields": []
  }
}
{
  "Code": "ActivityStubSuccess",
  "Data": {
    "kind": "IntSvc",
    "slotKey": "SendEmail_1",
    "exportBucketKey": "SendEmail_1_output",
    "activity": {},
    "parameters": {},
    "requestFields": [],
    "responseFields": []
  }
}

The Activity object's keys are kept in their native camelCase (not PascalCased like most of this CLI's output) — it's pasted verbatim into a workflow's do[] array, and PascalCasing would break the executor. When --resource-key selections are supplied, the response adds a SolutionResourceFields array; when the lookup surfaces enrichment opportunities or caveats, it adds IsEnrichmentAvailable and/or Warnings.

Veja também

Esta página foi útil?

Conectar

Precisa de ajuda? Suporte

Quer aprender? Academia UiPath

Tem perguntas? Fórum do UiPath

Fique por dentro das novidades