Skip to main content
Question

S3Connector - Upload dynamic filename

  • July 10, 2020
  • 3 replies
  • 37 views

Forum|alt.badge.img

I am creating a CSV file in a Featurewriter with a filename created as follows:-

litmap-@DateTimeFormat(@DateTimeNow(), %B-%d-%Y)

This is dropped into a directory on a fixed path

How can I pass this filename to the "File To Upload" parameter in the S3 uploader?

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

Forum|alt.badge.img
  • Author
  • July 10, 2020

I've figured it out

@Value(_dataset)/litmap-@DateTimeFormat(@DateTimeNow(), %B-%d-%Y).csv


ebygomm
Influencer
Forum|alt.badge.img+46
  • Influencer
  • July 10, 2020

If you are just writing a single file in your Feature Writer you should be able to get the filepath like so from the summary port

@Value(_dataset)/@Value(_feature_type{0}.name).csv

adriano
Forum|alt.badge.img+1
  • October 6, 2020

@davebarter​  I created a video walkthrough on uploading data with the S3Connector. I hope this is helpful:

https://www.youtube.com/watch?v=ex5ZuO5Jg28