Forum Discussion

khanh_tran's avatar
khanh_tran
New Contributor III
2 years ago
Solved

How I can build file name of "S3 File Writer" consumed from data stream?

From the very first, I have data stream like as below

[{
"report_pipeline_id":"5fac56734418fe353b7b846d",
"transaction_id":"72479d9c-85f4-4cc6-90ec-dffac6d8536a",
"client_id":"e2572c18-29de-46c1-a212-fa54f61e468f"
},...]

later step is CSV Formatter, this step returns 

[{
"content-type":
"text/csv; charset=utf-8"
}]

Last step is "S3 File Writer". How can I set File Name of "S3 File Writer" = $report_pipeline_id + $transaction_id - it's get from the first step? Thank you!

 

  • @Raph Just to validate, run your pipeline, once it’s completed check the no of document from output view of Soap execute snap from runtime log. If no of document count is 1 , which means you got a response from server, if any error comes either pipeline throw error or it will go to error view.

    You click on user setting whether auto validation is checked or not, to get the response during pipeline validation time.

3 Replies

  • alchemiz's avatar
    alchemiz
    Contributor III

    Hi khanh_tran ,

    Good day, you can use the binary properties in the CSV formatter snap

    Hope this helps.




    Thanks,
    EmEm

    • khanh_tran's avatar
      khanh_tran
      New Contributor III

      That's very helpful for me. Thank you so much <3<3

  • khanh_tran's avatar
    khanh_tran
    New Contributor III

    That's very helpful for me. Thank you so much ❤️