cancel
Showing results for 
Search instead for 
Did you mean: 

How to add timestamp dynamically in file name?

shin861231
Explorer
0 Kudos
275

Hello, 

I am now setting file name in FTP adapter (receiver) for an integration flow.

I have learnt from this blog (https://community.sap.com/t5/technology-blogs-by-members/sap-cpi-dynamic-file-name-adding-cpi-messag...) that I could set ${date:now:yyyyMMddHHmmss} in 

the file name so that the timestamp can be dynamically generated.

However, I want the timestamp to be more detailed, therefore I tried ${date:now:yyyyMMddHHmmssfffffffff}.

(By the way, when it's ${date:now:yyyyMMddHHmmss}, it went perfectly well.)

timestamp quiry.jpg

Could anyone please kindly advise on this?

Thank you.

 

View Entire Topic
roman_velichko
Explorer
0 Kudos

please use content modifier before sftp step. first, create exchangeProperty with concatenate values ${date} and constant 'ffffff', than use this value in sftp step

 

sorry for my bad english 😉

shin861231
Explorer
0 Kudos
Hello thank you for your reply!
shin861231
Explorer
0 Kudos
am i right that I should put the content modifier between splitter and receiver? Plus, could you please provide a screenshot to show how to do the ocncatenation?