Hello,
I am creating a workflow that pulls all meta data from a directory full of alteryx files. I can do it with yxmd and yxwz files just fine. My question is it possible to parse Alteryx packaged files (yxzp)? Or is it possible to unzip the files with a macro first and then I can run my other workflow to extract the meta data.
Thanks,
Aaron
Hey @ahulin you definitely need to unzip the file to read the .yxmd content. This might be easier with Python other than building a macro, I will try to put up something that could help
Cheers,
Thanks! I was just looking at powershell or python solutions. Playing around with converting to zip extension and then bringing it into Alteryx. 🙂
Hi @ahulin
I'm attaching a Python-based macro that could help. This macro unpacks .yxzp files into the same root folder and read the content from the workflow, app, or macro that is inside of it (note, only for the main asset, not from dependencies inside the yxzp file).
You just need to provide the full file path of the .yxzp file in a field. It outputs the workflow name and the XML content. From there, you can do whatever you were doing before.
Alteryx version used - 2021.2. Be careful when using with older versions because the Python version is different.
Cheers,
Wow! Thank you! I'll give it a try