Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi All,
Is it possible to get dynamicly generated file name durin export? It would be nice to have at least date there for example:
2012-03-16_my-export.csv
If its possible then how? Please advice.
Thank you.
Comments
Comment #1
rolkos CreditAttribution: rolkos commentedComment #2
ultimikeIt's not super-obvious how to do this, but it is pretty easy.
The downloaded filename has nothing to do with the "path" in the "data export settings" - that is simply the path that is used to trigger the generation of the file.
To set the actual filename, click "settings" next to "CSV file" in the View's "format" section. Then, check the "provide as file" box and then set the filename (including token) there.
-mike
Comment #3
joachim CreditAttribution: joachim commentedSee #2255359: Allow export filename to use replacement pattern value from first row -- possible duplicate.
Comment #4
xurizaemonComment #6
aniket.mohite88 CreditAttribution: aniket.mohite88 commentedHi,
Another solution for dynamic filenames during export here -
https://www.drupal.org/node/1288612#comment-11251445