Skip to main content
Question

S3Connector - Upload dynamic filename

  • Jul 10, 2020 3:54 PM UTC
  • 3 replies
  • 78 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
  • Jul 10, 2020 4:02 PM UTC

I've figured it out

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


ebygomm
Evangelist
Forum|alt.badge.img+54
  • Evangelist
  • Jul 10, 2020 4:07 PM UTC

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
  • Oct 6, 2020 11:56 AM UTC

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

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