Skip to main content
Question

S3Connector - Upload dynamic filename


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?

 

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+39
  • 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


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings