Hello all,
New to power automate and well I am figuring it out but it is taking a toll. I have created a Flow that saves attachments from my email account to a folder located in my OneDrive. This works. However my hurdle is that I have several TXT files in my emails at one time. I need to save those files to a static name IE ReportFlow.Txt however the file is constantly written with the actual attachments name when there is more than one TXT file. I used this to get this far.
ReportFlow(Expression).txt
Expression:
concat(split(items('Apply_to_each_Attachment_on_the_email')?['Name'], '.')[0], '-1', slice(items('Apply_to_each_Attachment_on_the_email')?['Name'], indexOf(items('Apply_to_each_Attachment_on_the_email')?['Name'], '.')))
How can I append a numerical value to the Static Name when there are multiple files to save at the same time? ReportFlow-1.txt ReportFlow-2.txt and not when I am getting ReportFlowCrazyLongAttachmentNamefromEmail-1.txt and ReportFlowCrazyLongAttachmentNamefromEmail-2.txt
Thanks

Report
All responses (
Answers (