Now inviting automation leaders: publish your playbook as a skill, under your own name. Publish yours →
Automation Skills
All skills/Uipath maestro flow/Published-function
Reference · Uipath maestro flow

Published-function

Part of Uipath maestro flow. Install the skill and your agent reads this page when it needs the depth.

Published function

Exact signatures, fields, and defaults: publishedFunction().

A Function is a small, single-purpose unit of code deployed to Orchestrator as its own resource. publishedFunction() invokes one as a single step (uipath.core.function.<key>, dispatched as Orchestrator.ExecuteFunctionAsync).

Signature: publishedFunction({ key, name, folderPath, inputs?, inputSchema?, returns? }), or publishedFunction({ key, name, location: 'in-solution', projectId, inputs?, inputSchema?, returns? }) for a coded function in the same solution (see In the same solution).

.step('echo', publishedFunction({
  key: '7059bdb5-fdd7-4e13-9d7b-1748aaeb129d',
  name: 'acme-echo',
  folderPath: 'Shared/acme-echo',
  inputs: { message: input('message') },
  returns: { echoed: 'string' },
}))
.step('relay', script({ code: 'return $vars.echo.output.echoed;' }))

At a glance

Run a deployed Orchestrator Function — a small unit of code published as its own resource — as one step.

.step('echo', publishedFunction({ key: functionKey,
  name: 'acme-echo', folderPath: 'Shared/acme-echo',
  inputs: { message: input('message') }, returns: { echoed: 'string' } }))

A function is usually deployed into a folder of its OWN name — read folderPath from the tenant rather than assuming 'Shared', since the binding's resourceKey is <folderPath>.<name>.

Identity

Three fields, none of them derivable:

Two steps on the same function share ONE binding pair, exactly as the other published families do.

In the same solution

A coded function that is a sibling project of the Flow, in the same solution, is not published yet, so it has no folder. Write it with location: 'in-solution' and projectId instead of folderPath:

.step('math', publishedFunction({
  key: localResourceKey,
  name: '<FunctionProject>',
  location: 'in-solution',
  projectId: localProjectKey,
  inputs: { invoice_amount: input('invoice_amount') },
  returns: { variance_pct: 'number', summary: 'string' },
}))

Needs @uipath/maestro-builder-sdk 6.59.0 or later; an older SDK has no location on publishedFunction() and refuses the step as having no folderPath (FUNCTION_NO_FOLDER).

Declaring what it returns

returns is required if anything reads the step's output. The function's real output arguments live on the tenant and authoring is offline, so an undeclared read is rejected (FUNCTION_READ_WITHOUT_RETURNS) — nothing here could tell a real field from a typo. registry get uipath.core.function.<key> shows what the platform synthesizes for a deployed one.

To type an argument differently from its value (for example an object filled from an expression), add inputSchema; keep one a decompiled step carries. See Orchestrator Processes.

Which family to reach for

The deployed thing Factory
A Function (a unit of code, its own resource) publishedFunction()
A coded API workflow apiWorkflow()
An RPA process rpaWorkflow()
A Maestro process orchestration agenticProcess()

They share one emit path and differ only in service type and binding subtype, so picking the wrong one produces a flow that validates and dispatches nothing. Match the family the scenario names.

Evidence boundary

Offline validate proves the node type, the binding pair and the declared output schema. That the function exists, accepts those arguments, and returns those fields is platform evidence — .onError(...) is supported for the dispatch failing.

Publish your skill

Copy this prompt into Claude Code, Codex or any agent. It walks you through your first skill in about 20 minutes, with you as the author.

Click to copy.