I’ve seen the other posts where the invoke activity is being used, the .Sort(), and the OrderBy method is being used, but I have ran into compiler errors.
This is how it’s setupt
attachmentFiles = Directory.GetFiles(file_path).Sort
I also tried
attachmentFiles = Array.Sort(Directory.GetFiles(file_path))
I also tried the invoke activity method as well with
System.Array
Empty
Sort
Each of these has led to compiler errors. Is there a way to sort the array of strings grabbed from the Directory.GetFiles without errors?