Skip to main content

Utiliza macros de Alteryx One en flujos de trabajo de Designer

Inserta macros alojadas en la nube desde tu biblioteca de Alteryx One en flujos de trabajo de Designer. Designer hace referencia a la macro seleccionada en Alteryx One en lugar de depender de su ruta de archivo local. Esta referencia ayuda al flujo de trabajo a usar la misma macro en entornos compatibles.

Antes de comenzar

  • Make sure you’re online and Designer can access the internet.

  • Inicia sesión en el espacio de trabajo de Alteryx One que contiene la macro.

  • Confirma que tienes acceso a la macro.

Tu espacio de trabajo activo determina qué Biblioteca de Alteryx One utiliza Designer.

Insertar una macro desde Alteryx One

Importante

To insert an Alteryx One macro into a workflow, Designer must be in Classic View. This option is not yet available in Modern View.

Si tienes macros de Designer en tu biblioteca de Alteryx One, puedes insertarlas en un flujo de trabajo de Designer desde el lienzo.

  1. In Designer, right-click an empty area of the workflow canvas.

  2. Seleccionar Insertar > Macro > Explorar en Alteryx One. Las macros de Alteryx One que ya están abiertas en Designer se identifican mediante un ícono de nube.

  3. In the macro browser, locate and select a macro. You can use the available filter options to narrow the list:

    • Select from All, Owned by Me, and Shared with Me.

    • Utiliza el ícono de filtro (embudo) para mostrar macros según estas categorías:

      • owner: Mostrar macros creadas por usuarios específicos.

      • Compartido con: Mostrar macros compartidas con usuarios específicos.

      • Etiqueta: muestra macros con etiquetas específicas aplicadas.

      • Creado por: Mostrar macros creadas por usuarios específicos.

  4. Utiliza la lista desplegable en la columna Versión para seleccionar la versión que deseas utilizar:

    • Select a numbered version to keep the workflow linked to that version.

    • (Default) Select Always Use Latest Version to always use the latest available version. At runtime, the workflow uses the latest version available in the Alteryx One library. The version is selected when workflow execution first reaches the macro and remains fixed for the rest of that workflow execution. This option does not limit selection to published versions.

  5. Seleccionar Insertar.

Designer adds the macro to the canvas and stores its Alteryx One asset reference and version selection in the workflow.

Un ícono de nube indica las macros abiertas en Alteryx Designer que se abrieron desde Alteryx One. También puedes insertar una de estas macros abiertas desde Insertar > Macro.

Importante

Alteryx One macros are currently not available in the Designer tool palette. To use Alteryx One macros in Designer, add them to your workflow with the right-click Insert option.

Cambiar versión de macro

  1. Right-click the macro on the canvas.

  2. Seleccionar Elegir versión de macro.

  3. Seleccionar una versión numerada o Utiliza siempre la versión más reciente (si siempre quieres usar la versión más reciente disponible).

If you select Always Use Latest Version, the workflow can use a newer macro version when one becomes available. Review the workflow after the macro owner publishes an update.

Abrir una macro referenciada

Double-click an Alteryx One macro on the canvas to open it in a new Designer tab. You can also right-click the macro and select Open Macro.

Designer recupera la versión de macro seleccionada de Alteryx One. Si Designer está sin conexión, solo puede abrir la macro cuando esa versión sigue disponible en la caché local.

Trabajar sin conexión

When Designer is offline, only Insert > Macro > Browse Local is available and opens the local file browser. You can insert a local YXMC file, but you can’t browse the Alteryx One Library.

An Alteryx One macro already in the workflow might remain available from the local cache. Designer displays an error if it can’t retrieve the referenced macro.

Save or Package the Workflow

Ejecución en el espacio de trabajo

To run a Designer Workflow Package (YXZP) that references a macro saved in your Alteryx One Library, your Workspace Execution engine version must be 2026.3 or newer.

Designer preserves Alteryx One macro references when you save the workflow as a YXZP file to Alteryx One.

When you save a workflow package as a YXZP file in Designer via File > Save As > Alteryx One:

  • Las macros alojadas en la nube se seleccionan de forma predeterminada y aparecen en Administrar dependencias como una Macro de nube referenciada. El paquete conserva sus referencias de Alteryx One. La macro se indica como una “Macro de nube” y su ubicación se muestra como Alteryx One Library\MyMacro, por ejemplo.

  • To package Alteryx One macro with your workflow, select Include as a copy from the macro's three-dot menu. This includes an independent copy* of the Alteryx One macro in the package (indicated by "Macro Copy" in the Dependencies list).

  • Make sure users and workspace execution environments can access any macro that remains referenced from Alteryx One.

  • To restore the reference to the macro in Alteryx One, select Referenced Cloud Macro from the three-dot menu.

Copia de macro

*If you select Include as a copy, the workflow uses the copy of the macro included in the package. Future updates to the original Alteryx One macro won't be reflected in your workflow. To use the original macro again, select Referenced Cloud Macro from the three-dot menu.

When a workflow includes a referenced macro, and you save it to Server, the macro is always included as a copy. Future updates to the original Alteryx One macro won’t be reflected in the workflow.

Local macros: If your workflow also uses macros saved on your computer, an alert appears in Manage Dependencies. Select Upload All to upload them to your Alteryx One Library. From that point, the workflow references the Alteryx One macros instead of the local file paths. If an upload fails, select Retry. Go to Manage Dependencies for Workspace Execution.

You can include a Designer macro as a dependency in a workflow package (.yxzp), but you can't save a package with a Designer macro as it primary asset. Designer displays an error message if you try.

Go to Workflow Management for information about saving workflows and managing package dependencies.