Hello,
I have a working flow that save attachments to SharePoint and I would like now that the flow rename the file with the date of the email and the domain of the email.
For example I receive a PDF today 08.11.2022 and the sender is qwerty@company.com
My expected name file is company.08.11.2022
My flow is running but the name file is not being edited. I'll attach screens of my flow.
I initialized first a variable and then I do an Apply to each where I set a variable then I get the email domain thanks to an expression working with examples (slice(triggerBody()?['From'], add(indexOf(triggerBody()?['From'], '@'), 1), lastIndexOf(triggerBody()?['From'], '.')) and then I concatenate it with the date : concat(outputs('Get_Email_Domain'), '_', formatDateTime(utcNow(), 'yyyyMMdd'), '.')
After that my previous flow runs with an apply to each with condition and a create file with in file name the variable VarName that I created previously.
Can someone spot my error? Why the name file is not being edited ?
Many thanks

Report
All responses (
Answers (