- Overview
- JavaScript functions
- Python functions
- Deploy and run
- Packaging and publishing
- Invoking functions
Invoking functions
Once deployed as a process, a function runs as an Orchestrator job. Python functions and JavaScript job functions are started from the following surfaces. JavaScript HTTP functions are called over HTTP.
From a Maestro Service Task
In a Maestro process, add a Service Task and bind it to the deployed function:
- Select the package and entry point.
- Map process variables to the function's
Inputfields. - Map the function's
Outputfields back to process variables.
The input and output schemas exported from your Input/Output models drive the binding UI, so typed fields appear directly in the mapping panel.
From a Run Job activity in Studio
In Studio or Studio Web, add the Run Job activity and point it at the deployed function. The same exported input/output schema drives the argument mapping, so typed fields appear directly in the activity's input/output panels.
From the Orchestrator API
Start the function as a job:
POST /orchestrator_/odata/Jobs/UiPath.Server.Configuration.OData.StartJobs
POST /orchestrator_/odata/Jobs/UiPath.Server.Configuration.OData.StartJobs
Pass the package (release) and the input arguments in the request body. The job runs the function and returns its output through the standard job result.
From a job trigger
Because a deployed function is an Orchestrator process, it can be started by a scheduled or event/webhook-based job trigger. Queue triggers are not supported for functions.
Over HTTP
A JavaScript HTTP function declares a method and a path, and is exposed as an Orchestrator HTTP trigger. Callers reach it with a bearer token, and the function receives the caller's identity. A coded app uses it as its backend without holding a credential in the browser.
The request is limited to about 10,000 characters of input, and the response to about 512 KB. A job carries large input and output as attachments, so a function that handles large payloads should be a job function.
Python functions always run as jobs. See HTTP triggers and routing.
Observability
Every invocation runs as a job and is logged in Orchestrator job history with caller identity and timestamps. When invoked from Maestro, the run also emits trace spans — see Tracing and observability.
Next steps
- About Functions — review where functions fit in the platform.