UiPath Documentation
coding-agents
2026.10
false
Guía del usuario de UiPath para Coding Agents

Receta: crear una función codificada

Build, test, and publish a coded function that normalizes an order payload.

Build a coded function in Python or TypeScript/JavaScript that normalizes an order payload.

Requisitos previos​

  • Install and set up complete, and you are signed in.
  • An empty working folder, or an existing project.

Normalize an order payload​

  1. Open your coding agent in the folder.

  2. Describe la transformación:

    "Cree una función codificada que normalice la carga útil de este pedido: elimine los espacios en blanco de cada campo de cadena, escriba en mayúscula el ID del pedido y convierta la fecha del pedido a ISO 8601. Aquí hay una carga útil de muestra: [pegar JSON de muestra]."

  3. Review the contract and transform logic.

  4. Ask the agent to run the function locally against your sample payload and a malformed one. Check both outputs.

  5. Ask the agent to publish the function.

Use the published function​

After each publish, update the function's release in Orchestrator under Automations > Processes. Triggers use the new version only after that.

Call the function from a Maestro service task, an agent, or a workflow. See Coded functions.

  • Requisitos previos​
  • Normalize an order payload​
  • Use the published function​

¿Te ha resultado útil esta página?

Conectar

¿Necesita ayuda? Soporte(opens in new window)

¿Quiere aprender? UiPath Academy(opens in new window)

¿Tiene alguna pregunta? Foro de UiPath(opens in new window)

Manténgase actualizado