I am downloading .zip file from outlook which has todays date and time and saving it into sharepath. downloading and saving file part is working fine. now I need to unzip this file so that I can use that into script. also rename it with below mentioned desired name.
original File name : ALL_New_Details_2023-09-26-13.35Hr.zip
desired name : ALL_New_Details_2023-09-26.zip
Step 1: Create the new filename
Use an ‘Assign’ activity and a Regex.Replace to remove the time in the filename.
Left Assign:
str_CleanFilename (new string variable)
Right Assign:
System.Text.RegularExpressions.Regex.Replace(yourZipStr, “.\d{1,2}.\d{1,2}[A-z]{2}(?=.zip)”, “”).ToString