Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Finding/Replacing multiple Formula Tools in a Workflow

DavidKennedy
7 - Meteor

Is there a way to find/replace a specific formula tool in a workflow?

 

I have a single workflow that uses 46 separate smaller workflows (not macros) to extract and reformat individual worksheets from a single input spreadsheet.  Each of the smaller workflows are identical with the exception of a single Filter Tool that identifies which worksheet from the input to process.  In each of the workflows is a Formula Tool that extracts and reconfigures pieces of string text.  After setting up all 46 smaller workflows I found an issue that I didn't account for in one of the formulas in the Formula Tool.  In a completely separate workflow, I fixed the formulas in the Formula Tool to correctly process the issue in the incoming text string but now I need to copy that Formula Tool into all 46 of the smaller workflows.  I can do it manually, one-by-one, but that would be exceedingly tedious and introduce the possibility for errors so, I really don't want to have to do it that way.

 

So my question is two-fold...can this be done and, if so, how?

 

As always...thanks!

5 REPLIES 5
flying008
15 - Aurora

Hi, @DavidKennedy 

 

Maybe you can show your formula both before and after you fixed. thus we try to cover it.

DavidKennedy
7 - Meteor

Unfortunately, its not a single formula that changed.  Its multiple formulas within the Formula Tool that changed and were added/deleted.

gabrielvilella
14 - Magnetar

Maybe the bigger question here is why are you doing this with multiple workflows rather than a macro? This sounds like something a batch macro would solve.

DavidKennedy
7 - Meteor

If it helps, here's a couple of screenshots of the formulas before and after I made the needed changes.  

 

Before

DavidKennedy_0-1667393472931.png

 

After

DavidKennedy_1-1667393583271.png

 

Here's a screenshot of the formula tool inside one of the 46 smaller workflows.  I need to replace this formula tool, in all 46 workflows, with the new one I created that has the correct formulas.

 

DavidKennedy_2-1667393822184.png

 

DanFlint
8 - Asteroid

Hi @DavidKennedy,

If you open a workflow in a text editor such as notepad, notepad++, sublime text etc. you will have access to the xml which defines your workflow.

Within here, you would be able to perform a find/replace as you would in any text file - with some of the text editors, you may be able to affect multiple files simultaneously with one find/replace operation if needed.

While there, you would also be able to find the xml for any new formulas that you wanted to implement and copy/paste it into other formula tools.

 

If you decide to go down this path, I would encourage you to take a backup of your original workflows in case one of your edits causes issues.

 

Hope this helps,

Dan

Labels
Top Solution Authors