Skip to main content

Usar macros do Alteryx One em fluxos de trabalho do Designer

Insira macros hospedadas na nuvem da sua Biblioteca do Alteryx One nos fluxos de trabalho do Designer. O Designer faz referência à macro selecionada no Alteryx One em vez de depender do caminho do arquivo local. Esta referência ajuda o fluxo de trabalho a usar a mesma macro nos ambientes compatíveis.

Antes de começar

  • Verifique se você está online e se o Designer consegue acessar a internet.

  • Faça login no espaço de trabalho do Alteryx One que contém a macro.

  • Confirme se você tem acesso à macro.

O espaço de trabalho ativo determina qual Biblioteca do Alteryx One o Designer usa.

Inserir uma macro do 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.

Se você tiver macros do Designer na Biblioteca do Alteryx One, poderá inseri-las em um fluxo de trabalho do Designer pela tela.

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

  2. Select Insert > Macro > Browse in Alteryx One. Any Alteryx One macros already open in Designer are identified by a cloud icon.

  3. No navegador de macros, localize e selecione uma macro. Você pode usar as opções de filtro disponíveis para restringir a lista:

    • Selecionar entre Todos, De minha propriedade e Compartilhado comigo.

    • Use the filter (funnel) icon to show macros based on these categories:

      • Owner: Show macros created by specific users.

      • Compartilhado com: mostrar macros compartilhadas com usuários específicos.

      • Tag: Show macros with specific tags applied.

      • Created By: Show macros created by specific users.

  4. Use the dropdown in the Version column to select the version to use:

    • 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. Select Insert.

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

Um ícone de nuvem indica macros abertas no Designer que foram abertas a partir do Alteryx One. Você também pode inserir uma dessas macros abertas em Inserir > 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.

Change Macro Version

  1. Clique com o botão direito do mouse na macro na tela.

  2. Selecionar Escolher versão da macro.

  3. Selecionar uma versão numerada ou Sempre usar a versão mais recente (se você sempre quiser usar a versão mais recente disponível).

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 uma macro referenciada

Clique duas vezes em uma macro hospedada na nuvem na tela para abri-la em uma nova guia do Designer. Você também pode clicar com o botão direito na macro e selecionar Abrir macro.

O Designer recupera a versão da macro selecionada do Alteryx One. Se o Designer estiver offline, ele só poderá abrir a macro se essa versão continuar disponível no cache local.

Trabalhar offline

Quando o Designer está offline, apenas Inserir > Macro > Procurar localmente está disponível e abre o Explorador de Arquivos local. É possível inserir um arquivo YXMC local, mas não é possível procurar na Biblioteca do Alteryx One.

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

Execução do espaço de trabalho

Para executar um Pacote do fluxo de trabalho do Designer (YXZP) que faz referência a uma macro salva na sua Biblioteca do Alteryx One, a Versão do motor da execução do espaço de trabalho deve ser 2026.3 ou mais recente.

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

Quando você salva um Pacote do fluxo de trabalho do Designer como um arquivo YXZP no Designer por meio de Arquivo > Salvar como > Alteryx One:

  • Alteryx One macros are selected by default, and the package retains their Alteryx One references. Each macro is labeled Referenced Cloud Macro in Manage Dependencies with its location shown as Alteryx One Library\MyMacro, for example.

  • 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.

Macro Copy

*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.

Vá para Gerenciamento de fluxos de trabalho para obter informações sobre como salvar fluxos de trabalho e gerenciar dependências de pacote.