UiPath Documentation
functions
latest
false
  • Información general
    • Acerca de las funciones
  • Python functions
    • Primeros pasos
    • Building Python functions
    • Accessing platform services
    • Tracing and observability
    • Pruebas y depuración
  • Deploy and run

Functions user guide

Accessing platform services

Python functions reach Orchestrator resources through the UiPath() client. Credentials and resource references are resolved at runtime — no secrets are stored in your code or shipped inside the package.

from uipath.platform import UiPath

sdk = UiPath()
from uipath.platform import UiPath

sdk = UiPath()

Activos

Retrieve a named asset value (for example, an API token or base URL) from a folder:

asset = sdk.assets.retrieve("API_BASE_URL", folder_path="Shared")
asset = sdk.assets.retrieve("API_BASE_URL", folder_path="Shared")

Depósitos

Download and upload files from Orchestrator storage buckets:

sdk.buckets.download(
    name="Invoices",
    blob_file_path="invoice.pdf",
    destination_path="/tmp/invoice.pdf",
    folder_path="Shared",
)
sdk.buckets.download(
    name="Invoices",
    blob_file_path="invoice.pdf",
    destination_path="/tmp/invoice.pdf",
    folder_path="Shared",
)

Conexiones

Access an Integration Service connection by id:

conn = sdk.connections.retrieve("connection-id")
conn = sdk.connections.retrieve("connection-id")

Otros servicios

The platform client also exposes queues, jobs, processes, documents, and entities. See the uipath SDK reference for the full surface and method signatures.

Credentials and security

  • Secrets live in Orchestrator assets, retrieved at runtime — never hardcode them or commit them to the project.
  • A function runs under the identity it is invoked with; folder-level RBAC governs which assets and resources it can read.
  • During local development, resource references resolve through bindings.json so you can test against real Orchestrator resources.

Próximos pasos

¿Te ha resultado útil esta página?

Conectar

¿Necesita ayuda? Soporte

¿Quiere aprender? UiPath Academy

¿Tiene alguna pregunta? Foro de UiPath

Manténgase actualizado