I am trying to write files using dynamic destinations using the WriteToFiles class.
WriteToFiles
I even found some further developed example like this one, where they bui