I’m using an invoke workflow activity to pass a folder path. The receiving work flow has to loop through that folder and read the files. The folder path is being passed as a string so when used inside a for each loop it counts each individual character of the folder path string instead of counting the files inside the path. What variable type do I need to use for the folder path when passing it to the other workflow?
if we have the folder path we need to get the filenames in that folder as a array of files and then pass that file path array to FOR EACH activity
to get the file path array
out_filepatharray = Directory.GetFiles(“yourfolderpath”)
where out_filepatharray is a variable of type string array
–now pass this array variable to FOR EACH activity and change the type argument as string in the property panel of the for each activity
–inside the loop while to refer the file path use the variable as item
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.