Thanks for your prompt response, I had removed the String.Join and also create an array variable.
But I’m getting this error, am I short any keyword in the expression?
Because it doesn’t see the quotation marks. Delete the quotation marks in the code you copied from the forum and rewrite it. You should also have a variable called FolderPath. Define the file path of the folder you want to check.
Also, if you are going to use it in a loop, below
Add the specified .ToArray.
Thanks!! It worked like charm.
I have some questions, sorry if these questions sound silly…
String.join method is not ideally applicable for files more than 1 ?
What is the difference between “toArray” and “toArray()” ? *Both are working in my case
There is a log message to show the file’s name through the ArrayVariable, however, current output is showing “System.string” instead of Book1.xlsx…Bokk2.xlsx…Is it normal?
Again,really appreciate your time and effort in replying, thanks in advance.
we wanna keep the array for the later looping with for each
toArray() is the correct naming the method, only toArray is a lazy short form (try to avoid it)
toString is not always implemented in a way that it will expose the variable content, in this case it is just printing the datatype (as often in also other cases)