Re: Save Attachement from email and rename file without date
Hello @Pierre_EOLEN ,
in the number of last characters to be removed is always the same, you can follow this steps:
1. Add the "Get attachment (V2)" action:
The Message Id and Attachments Attachment Id are grabbed from the Trigger

2. Add a "Compose" action in which put the following expression:
substring(items('Apply_to_each')?['name'],0,sub(length(items('Apply_to_each')?['name']),14))
This function will remove the last 14 characters, including the extension ".xlsx"

3. Add the OneDrive "Create file" action, where put the previous Compose outputs in the "File Name" +.xlsx

Add the "Content Bytes" value, grabbed from the "Get Attachment" action, in the "File Content" field.
If I have answered your question, please mark my post as Solved.
If you like my response, please give it a Thumbs Up.
BR,
Marco