Dynamic Filepath in foreach file enumerator

  • Has anyone figured out how to make the folder dynamic?  It doesn't seem

    to accept variables, and I don't see a property for it either.

    Our task is to pull all files from a specified server/folder, by

    pulling the server/folder location out of a table so that we can add

    more locations by just entering a record in a table.

  • This took me a little while to spot but you can do it through variables quite easily.

    Right click the For Each container and choose edit.

    On the Collection tab under the Foreach Loop Editor there is an expressions property.

    If your Foreach enumerator is set to Foreach File Enumerator then you can add an expression for the Directory property which you set via a variable.

    Simple when you where to look!

    Regards

    Daniel

  • Thank you Daniel.  Even after reading your explination it took me a while to find it.  Talk about hidden!

    But it's working beautifully.

    Ches

  • Daniel,

    USASOC thanks you.

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply