Solved

Scripted Branch connector

  • 15 December 2023
  • 1 reply
  • 43 views

Userlevel 3
Badge

I am using the Copy connector to make a copy of all EDI 810 for a trading partner and sending them to another workspace where I need to find a group of 200 possible unique matches and route them to another trading partner.  As you can see in the screen shot below, I know what file name(s) to look for and therefore began this new flow using the Branch connector.  

The values I’m looking for in the filename will always match a specific pattern.  However, the branch connector is going to be MASSIVE if I manually add 200 possible filename patterns. (this image shows only 6)

Besides being tedious, this method will work but I am wondering is there a way to script this?  Regardless, I will still be hard-coding 200 filename prefixes.  

Thanks

icon

Best answer by ericbux 18 December 2023, 17:31

View original

1 reply

Userlevel 3
Badge

I think I came up with a better solution.  I am going to add a new value to my result set which is a 0 or 1.  If a 1 is present at the end of my filename *_1.810 then route it to the other trading partner.

 

Reply