Could you try below expression
@replace(item().name,'.zip', '.txt')
Please don't forget to Accept Answer and Up-vote if the response helped -- Vaibhav
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have a for each loop which moves many .zip files to another ftp server.
On the Source I have Compression Type ZipDeflate and on the Sink I have a fileName variable which is dynamic: @item().name
Problem with this is it pass across .zip as extension even though files are deflated.
I tried this in dynamic content : replace(@item().name, '.zip', '.txt') but then all files are called: replace(@item().name, '.zip', '.txt')
What's the best way to retain the file names but replace the .zip extension with .txt
Thank you
Could you try below expression
@replace(item().name,'.zip', '.txt')
Please don't forget to Accept Answer and Up-vote if the response helped -- Vaibhav