Hi team, I have created a flow to grab an attachment from an email, rename it to add the date on the end, and save to a SharePoint folder. The flow is working, but the file name ends up with additional characters either side of the original attachment name, i.e. [_Agent State Details Report_]_20221122.csv
While the additional characters aren't inhibiting any other processes, I'd like to understand why it's happening.
The rename steps and expressions are as follows:
1. Initialize variable: Name - Rename Attachment, Type - String
2. Get Attachment Name: first(split(variables('RenameAttachment'), '.'))
3. Get Attachment Extension: last(split(variables('RenameAttachment'), '.'))
4. New Attachment Name: concat(outputs('Get_Attachment_Name'), '_', formatDateTime(utcNow(), 'yyyyMMdd'), '.', outputs('Get_Attachment_Extension'))