I am trying to zip two files into a .zip. I ran a log to and i see that one file it finds, the other file it does not. What is the easiest way for me to find a .pdf file in a directory that only has 1 .txt, 1 .xlsx and 1 .pdf? I tried to use Directory.GetFiles(“C:\Temp\KenoKozie”,“.pdf") but i get an error about the string. Not sure what else i can do. The error says "Compiler error(s) encountered processing expression “Directory.GetFiles(“C:\Temp\KenoKozie”,”.pdf”)". value of Type ‘1-dimensional array of String’ cannot be convereted to ‘String’. "
I figure it out. The initial .pdf file comes from off an email. During the save attachment activity, i created an output i called PDFOutput which is a System.Collections.Generic.IEnumberable<system.string> variable type. I then used an assign activity and created a string variable called PDFFile where in the argument i joined the strings using string.join(“,”,PDFOutput). This string value was able to be passed in the compress/zip activity and works fine now.