Renaming attachment from outlook

Hi All, I am using studio version 2020 and I want to rename an attachment downloaded from outlook emails, but I don’t have the ‘Rename file’ activity..this is how I want to rename:

To remove those periods(.) before co and before za the only one that should remain is the one before eml…
Others would be ‘abc@123.com.eml’ so this case I would want to just remove the period before ‘com’..
Please help

Save activity I have this

Hello @Anelisa_Bolosha1

In the “File Path” field of your Save Mail Message activity, use this “Respond_Mails/_” + System.Text.RegularExpressions.Regex.Replace(item.From.Address, “.(?=.*.eml$)”, “”) + “.eml”

Cheers

Hi thanks for feedback…seems like it didn’t resolved it
image

Okay try this instead “Respond_Mails/_” + (item.From.Address.Replace(“.”, “”)) + “.eml”
but this will remove all the dots (.) if present between the except the last one .eml

1 Like

This is perfect actually it solved it thank you so much

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.