I have an application where I have to upload all the documents present inside a particular folder dynamically. How can I achieve this task?
you can get all files inside folder using Directory.getFiles(“foldername”), then you use this property for upload files.
Hi @vivek_Chowdary,
Use for each, and in the expression use Directory.getFiles(“foldername”). Inside the loop place your activities.
Thanks
Hi
You can use the assign activity to get the file list in the folder to an array…
Directory.GetFiles("C:\Folder")
Then use a For Each activity to loop through the file array and get the file name to upload