Hi guys, i’ve an issue with this workflow.
I’ve a couple of files to attach in a mail and to simplify the life of receivent i want to zip in a unique file. All works fine, but outlook can’t attach a file > of 20/25 MB.
To workaorund this, i’ve think to do a condition like this:
For each item in Directory.GetFiles(“PDF”);
add to collection ListBatch (list of String)
assign system.IO.fileinfo filesize = New System.IO.FileInfo(item)
add to collection SumBatch (list of int32)
assign Int32 Sum = SumBatch.Sum
If Sum > 20 MB then
Zip ListBatch —> (“C:\user\nameoflist.zip”)
Now the issue is: how i can transform zip name in a variable? To change the name of the zip before the new one overwrite the old one?
And how can i add the value of FileSize in kb to a SumBatch collection?