Use Alteryx One Macros in Designer Workflows
Insert Alteryx One macros, which are macros saved in your Alteryx One Library into Designer workflows. Designer references the selected macro in Alteryx One instead of relying on its local file path. This reference helps the workflow use the same macro across supported environments.
Before You Start
Make sure you’re online and Designer can access the internet.
Sign in to the Alteryx One workspace that contains the macro.
Verifica di avere accesso alla macro.
Lo spazio di lavoro attivo determina quale libreria Alteryx One utilizza Designer.
Inserisci una Macro da Alteryx One
Importante
Per inserire una macro Alteryx One in un flusso di lavoro, Designer deve essere in Visualizzazione classica. Questa opzione non è ancora disponibile nella Visualizzazione moderna.
Se hai macro di Designer nella Libreria di Alteryx One, puoi inserirle in un flusso di lavoro di Designer dall'area di disegno.
In Designer, right-click an empty area of the workflow canvas.
Select Insert > Macro > Browse in Alteryx One. Any Alteryx One macros already open in Designer are identified by a cloud icon.
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.
Utilizza l'icona Filtro (a imbuto) per mostrare le macro in base a queste categorie:
Proprietario: mostra le macro create da user specifici.
Condivise con: mostra le macro condivise con user specifici.
Tag: Show macros with specific tags applied.
Creato da: mostra le macro create da user specifici.
Utilizza il menu a discesa nella colonna Versione per selezionare la versione da utilizzare:
Seleziona una versione numerata per mantenere il flusso di lavoro collegato a tale versione.
(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.
Seleziona Inserisci.
Designer aggiunge la macro all'area di disegno e memorizza nel flusso di lavoro il riferimento alla relativa risorsa Alteryx One e la selezione della versione.
Un'icona a forma di nuvola indica le macro aperte in Designer da Alteryx One. Puoi anche inserire una di queste macro aperte da Inserisci > 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.
Modifica versione della macro
Fai clic con il pulsante destro del mouse sulla macro nell'area di disegno.
Select Choose Macro Version.
Seleziona una versione numerata o Utilizza sempre la versione più recente (se vuoi utilizzare sempre la versione più recente disponibile).
Se selezioni Utilizza sempre la versione più recente, il flusso di lavoro può utilizzare una versione più recente della macro quando disponibile. Rivedi il flusso di lavoro dopo che il proprietario della macro pubblica un aggiornamento.
Apri una macro di riferimento
Fai doppio clic su una macro ospitata nel cloud nell'area di disegno per aprirla in una nuova scheda di Designer. Puoi anche fare clic con il pulsante destro del mouse sulla macro e selezionare Apri macro.
Designer retrieves the selected macro version from Alteryx One. If Designer is offline, it can open the macro only when that version remains available in the local cache.
Lavora offline
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.
Una macro ospitata nel cloud già presente nel flusso di lavoro potrebbe rimanere disponibile nella cache locale. Designer visualizza un errore se non riesce a recuperare la macro a cui si fa riferimento.
Save or Package the Workflow
Esecuzione spazio di lavoro
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 conserva i riferimenti alle macro di Alteryx One quando salvi il flusso di lavoro come file YXZP in Alteryx One.
Quando salvi un pacchetto del flusso di lavoro come file YXZP in Designer tramite File > Salva con nome > 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.
Copia 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.
Macro locali: se il flusso di lavoro usa anche macro salvate nel computer, compare un avviso in Gestisci dipendenze. Seleziona Carica tutto per caricarle nella Libreria Alteryx One. Il flusso di lavoro fa quindi riferimento alle macro caricate. Vai a Gestisci dipendenze per Esecuzione spazio di lavoro.
Puoi includere una macro di Designer come dipendenza in un pacchetto di flusso di lavoro ( .yxzp), ma non puoi salvare un pacchetto con una macro di Designer come risorsa principale. Designer visualizza un messaggio di errore se ci provi.
Vai a Gestione del flusso di lavoro per informazioni sul salvataggio dei flussi di lavoro e sulla gestione delle dipendenze dei pacchetti.