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
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”
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