community
cancel
Showing results for 
Search instead for 
Did you mean: 

Dev Space

Customize & extend the power of Alteryx. SDKs, APIs, custom tools, and more!

Update XML for saved workflows on upgrading the custom tool version

Highlighted
Atom

I developed a tool using HTML5 SDK and saved some workflows using that.

 

We released the new version of the tool, which has some GUI/ XML changes, but with this new version all previously saved workflows breaks. The older workflows has old XML configs, which is not valid with new engine that we have coded. Once user opens an old workflow, opens the tool and save it again, it will work as now new tool XML will be tied with this flow.

 

How could I automate this process, ie when a saved workflow is run, it should automatically take the new XML without the need of clicking on the tool to update the XML.

 

Thanks

Manu

Alteryx Certified Partner

@manua,

 

There's no way for tools currently used in existing workflows to be automatically updated with the new XML config requirements. These configs are coded into the workflows XML so in order for them to use a new one, the steps you're taking is the typical way to do so.

 

Another option you can try is to create a batch macro that would read in the yxmd as a none delimited, "\0", csv file to read in the XML of the workflow in it's raw state. Don't use the XML file type or it'll attempt to parse.

 

Afterwards, create a process to find the section of text with the old configs and replace it with the new and then output the file back out.

 

I have not done this before, but conceptually, should work as long as only the appropriate XML attributes are updated.

 

Hope this helps!

 

Jimmy