I am getting error on multiple assign activity. can you please help me
Multiple Assign: Can not assign ‘Directory.GetFiles(refineryFolder,”*”,SearchOption.AllDirectories).OrderByDescending(Function(d) New FileInfo(d).CreationTime).Take(1)’ to ‘listFiles’.
Directory.GetFiles(refineryFolder,“*”,SearchOption.AllDirectories).OrderByDescending(Function(d) New FileInfo(d).CreationTime).First().ToArray()
Check once from your end.
Directory.GetFiles(refineryFolder,““,SearchOption.AllDirectories).OrderByDescending(Function(d) New FileInfo(d).CreationTime).Take(1).ToList()
Directory.GetFiles(refineryFolder,””,SearchOption.AllDirectories).OrderByDescending(Function(d) New FileInfo(d).CreationTime).Take(1).ToArray()
As listFiles is IEnumerable<String>, your first expression seems no problem. Perhaps the error is caused by not variable type but any other matter.
It’s good if you can share your workflow as file. However, probably it’s difficult to run your workflow because there is no same folder or files in my environment.