Adjust DynamicFilename sample to work with fileAttributeName.
Change from dynamicFileName boolean to fileAttributeName.