Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in RPA by (12.7k points)

Presently working on Blue Prism V5.0, now I am working with the code block in BP now my aim is to get all the filesnames in a given folder/path. For this, I am using the C# code.

String[] str = Directory.GetFiles(inputFolderPath);

for this I am providing the input file/folder path through the same code block, the output of the file is string by default but BP doesn't have the type String so, how to convert the data type string to a collection.

Any suggestions will be helpful.

Thanks in advance

1 Answer

0 votes
by (29.5k points)

You can use a blue prism standard to do this operation, its better to use that because it does output a lot of columns, including: filename and filepath, extension, size etc. It also allows for filtering the results. Example could be ".*pdf" that should force action to return only the files with that extension.

Object: Utility - File Management
Action: Get Files

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
2 answers

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...