Reputation: 1
I Have a file name like that "Informe_Pro_Bra-201712110918.xlsx", i can fixe name and date but hours no because it's variable. So i want using code stage of BluePrism (C#) put the last 4 caracters "HHMM" as wilcards, to get others files in this date even with different extension. What do for that? Help Please
Upvotes: 0
Views: 3927
Reputation: 374
Get the all file in the collection and then apply the filter like
"FileName like 'Info_*.xlsx'"
You will be getting another collection with filtered one loop through it.
As we're already having the path append the FileName and generate the dynamic path like
[FTP_Path]&"\"&[Collection.Filename]
Upvotes: 0
Reputation: 1557
For searching files you can use for that object "Utility - File Management", action: "Get files".
there are two inputs:
Please use Pattern:
"Informe_Pro_Bra-20171211*.xlsx"
That way you can quickly find the file that you're looking for.
Upvotes: 1