Hi everyone,
I had the following complex use-case to overcome:
I have a bunch of custom macros under a tool and I need to export it as a .yxi(installer) file. But the catch is, we need to add sample workflows for each macros, like we see "Open example" command under each pre-existing tool. Even after a enhanced surfing, I didn't get a simpler way to do this.
The only suggested way was to share the samples separately and do manual configurations in the files and paths. So that doesn't seem to be a good way of installing something.
Then I came up with an idea of using a addition macro named setup, which contains customized python code, so after installing the .yxi file, user needs to run the setup file once and after restarting the designer everything will be in place..! Yeah that's the potential of python.
A detailed overview of this use-case, explanations, steps, solution and required demo files are added to Alteryx Gallery -> https://community.alteryx.com/t5/Public-Community-Gallery/Automating-Macros-yxi-installation-with-em...