Skip to main content

DesignerワークフローでAlteryx Oneマクロを使用する

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.

開始する前に

  • オンラインであり、Designerがインターネットにアクセスできることを確認してください。

  • マクロを含むAlteryx Oneワークスペースにサインインします。

  • マクロにアクセスできることを確認してください。

アクティブなワークスペースによって、Designerで使用するAlteryx One Libraryが決まります。

[Alteryx Oneからマクロを挿入]

重要

Alteryx Oneマクロをワークフローに挿入するには、Designerがクラシックビューである必要があります。このオプションは、モダンビューではまだ利用できません。

Alteryx OneライブラリにDesignerマクロがある場合、キャンバスからDesignerワークフローに挿入できます。

  1. Designerで、ワークフローキャンバスの空いている領域を右クリックします。

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

  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.

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

      • Owner: Show macros created by specific users.

      • Shared With: Show macros shared with specific users.

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

    • ワークフローをそのバージョンにリンクしたままにするには、番号付きバージョンをセレクトします。

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

A cloud icon indicates open macros in Designer that were opened from Alteryx One. You can also insert one of these open macros from Insert > Macro.

重要

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.

マクロバージョンを変更

  1. Right-click the macro on the canvas.

  2. Select Choose Macro Version.

  3. 番号付きバージョン、または[常に最新バージョンを使用](常に使用可能な最新バージョンを使用する場合)をセレクトします。

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.

[参照されているマクロを開く]

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は、Alteryx Oneから選択したマクロバージョンを取得します。Designerがオフラインの場合、そのバージョンがローカルキャッシュで引き続き使用可能な場合にのみ、マクロを開くことができます。

Work Offline

Designerがオフラインの場合、[挿入] > [マクロ] > [ローカルを閲覧]のみを利用でき、ローカルfileブラウザが開きます。ローカルのYXMC fileを挿入できますが、Alteryx One Libraryを閲覧できません。

ワークフロー内のクラウドホスト型マクロは、ローカルキャッシュから引き続き利用できる場合があります。参照先のマクロを取得できない場合、Designerはエラーを表示します。

Save or Package the Workflow

Workspace Execution

Alteryx Oneライブラリに保存されたマクロを参照するDesignerワークフローパッケージ(YXZP)を実行するには、Workspace Executionのエンジンバージョンが2026.3以降である必要があります。

Designerでは、ワークフローをYXZP fileとしてAlteryx Oneに保存すると、Alteryx Oneマクロ参照が保持されます。

When you save a workflow package as a YXZP file in Designer via File > Save As > 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.

  • [依存関係を管理]でワークフローとともにクラウドマクロをパッケージ化するには、マクロの3点メニューを選択し、[コピーとして含める]を選択します。これにより、パッケージにクラウドマクロの独立したコピー*が含まれます(依存関係リストでは「マクロコピー」と表示されます)。

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

  • Alteryx Oneのマクロへの参照を復元するには、3点メニューから[参照されているクラウドマクロ]を選択します。

マクロのコピー

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

ワークフローに参照マクロが含まれている場合、Serverに保存すると、マクロは常にコピーとして含まれます。元のクラウドマクロを今後更新しても、ワークフローには反映されません。

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.