Alteryx Designer Discussions

Find answers, ask questions, and share expertise about Alteryx Designer.
SOLVED

Viewing Underlying Code of Workflow

Nageen
8 - Asteroid

Hello Alteryx Community! 

 

I'm wondering if there is any way to view the underlying code behind a workflow. I found some resources for viewing underlying R-code, but can this be done for an entire workflow that does not include R tools? 

 

Thank you in advance! 

8 REPLIES 8
CharlieS
17 - Castor
17 - Castor

If you're referring to the XML code, there's a couple of ways:

 

- In Alteryx Designer: Options > User Settings > Edit User Settings > Advanced > Display XML in Properties Window. This will allow you to view the XML code of individual tools and the entire workflow as you work in Alteryx designer.

- Alteryx Designer workflows (.yxmd/.yxmc/.yxwz/.bak) can also be opened in text editing programs (like Notepad++). This will allow you to view the same XML code in another program. 

Nageen
8 - Asteroid

Thank you!! Just curious, could you also use the XML window to code a workflow instead of dragging and dropping tools? (Not that anyone would want to :)) Or, could you add annotations in plain English to each line of code? 

CharlieS
17 - Castor
17 - Castor

Yes, but it gets very complex to edit tools and their connections. That being said, XML editing is very handy if you want to edit formula contents, or update dependency/file paths..

 

You can open workflows in Alteryx Designer by inputting them as a text file (set delimiter \0). This would allow you parse/edit the workflow contents within Alteryx Designer. Combine this knowledge with the likes of the Directory Input and Dynamic Input tools and I've edited hundred of workflows in a matter of minutes. 

olisteadman
5 - Atom

That's fantastic. It really sparks my thinking about whether they'll be able to bring in a Diff functionality in order to have effective Version Control over workflows... as pondered here and hacked together here.

 

There is a platform for bioinformatics researchers that does very effective diff-based version control of underlying XML code, in exactly this way. Worth checking it out here.

drintoul
6 - Meteoroid

This is really awesome! I've been wondering whether I could develop a "meta" workflow to analyze other workflows. As part of our publishing process we want to ensure certain design standards such as No SELECT *, filtering early in the workflow, disabled browse and performance profiling tools, etc. to get better performance. Looks like the approach of opening as XML in text and then parsing will meet this requirement. Thanks Charlie S !

pstojakovic2
6 - Meteoroid

Would it also be possible to edit the workflow properties from notepad? Because I have a macro (.xymc file, I checked) I've been working on that saved as an app workflow for whatever reason, and now when I try to open it, Alteryx crashes. 

Brian_Stoffel
8 - Asteroid

Did you ever find a solution to the XML Meta data question? We have the same situation/question.

pstojakovic2
6 - Meteoroid

Hi there: 

I was able to resolve the issue by starting a clean document, copying over all the node and connection data in the correct areas, and then deleting the macro input and output tools

 
 
 
 
Labels