Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Server Discussions

Find answers, ask questions, and share expertise about Alteryx Server.

Macros publication

Uhrond
5 - Atom

Hello,

 

I have developed macros on Alteryx and some of them are nested. One macro calls another macro, and so on.

 

I am creating a workflow that uses one of these macros.

When I try to publish my workflow on the Alteryx Server, I can include the first level of macros using the "Workflow Assets" option. But my workflow does not include the lower-level macros.

 

Is there a solution to package the workflow with all the macros?

 

Thank you for your help.

3 REPLIES 3
Uhrond
5 - Atom

I have a not very clean solution: I add a container with all the macros I need to my workflow. I disable it. When I publish my workflow, I can integrate them all as dependencies.

fmvizcaino
17 - Castor
17 - Castor

Hi @Uhrond ,

 

One option is to follow this tutorial here to identify all the nested macros: https://knowledge.alteryx.com/index/s/article/Attaching-additional-files-to-a-workflow-package-yxzp-...

 

The second option is my suggested approach, which is to create a shared repository of macros that both developers and Alteryx Server have access to. https://help.alteryx.com/current/en/designer/apps-and-macros/macros.html#idp318231

 

Best,

Fernando Vizcaino

apathetichell
19 - Altair

you sub-macros are probably published to your default macro directory. Alteryx does not view macros in your default macro directory (usually Macros) as workflow dependecies. If your sub macros are in the same location as the rest of your workflow - Alteryx should recognize them as Workfow Dependencies when creating a .yxzp/publishing to Server.