Variable Substitution

Hello All , I am trying to email 15 files to 15 different users . The files are sitting on a server and I am using one flow service for each file which first gets the file ( using client:ftp) then sends as email using pub.client:smtp . I am trying to seek help on finding a better way to achieve this so that I use only one flow service instead of 15.

Can I use Repeat with count = 15 and to substitute filename and receiver at each iteration . Where the substitution variables are defined and how are they reset with every iteration ?

Thanks
Rajesh

First poll the directory for the list of file names in that directory and hold that list in the pipeline… then loop through that list using your service.

Hope this helps.

-Dan

If you already know the file names and emails, you can save them into a string table. Then, use it as the input array for the loop service.