Hi Hiren,
First, welcome to Blue Prism! Second, you've got a lot going on in this post. I'll try to answer as best I can.
1. Files downloaded on Chrome browser - I'm not quite sure where you're stuck so I'll point out a few BP things that might be helpful. If you still need more please reply and we'll dig deeper.
--There is a "Left()" and "Right()" function under "Text" in the expression editor of calculation stages. If you've already got the file name and know what the first few characters are, you could try something like Lower(Left([FileName],4))="file" (or whatever the first 4 characters of your file name are). If the syntax is difficult, don't stress it - just use the editor capabilities until you get comfortable with it. That comes with time and experience.
--If you know your folder (which it seems you do), you can also try using the "Get Files" action in the File Management Utility (Blue Prism canned object). That will get you all the files in a particular folder that match the criteria you set. If you know the first few characters and the extension, you can put "file*.*" in the "Patterns.csv" input to that action (see below). This action will give you output of a collection of all the files in that folder that match your criteria.
2. As for running the schedule for weekdays and only of last business day, this is one you'll probably write now and then modify 100 times in your career until you find something you love, but you actually have 2 questions here:
-
Q-How do I get the bot to only run on weekdays?
A-This isn't something you set in the code. The control room operator will schedule the bot to only run on weekdays from the schedule using the calendars in Blue Prism. If you don't have a "weekdays only" calendar, you might have to build one to add to your package, but this isn't something you do with code typically.
Q-How do I get my bot to process files as of the last business day when it runs on Mondays?
A- You could try something like
--FormatDate(Today(), "ddd") - this will get you the day of the week in letters (so Mon, Tue, etc.) THEN
--In a decision stage, use the result of that calculation to see if it's Monday like this ([DayofWeek0="Mon") - if yes, then take today's date, subtract three, and use that as your file dates. If not, then just proceed.
You can also put both calculations in the decision stage, if you're comfortable with it. Like this
(FormatDate(Today(), "ddd"))="Mon" (your "yes" path is for today is Monday, your "no" path is for every other day of the week)
This can get a little tricky if you need to work around holidays and such, so keep that in mind also as you develop. If that is a concern, you'll want to stick with Michael's logic or something similar to make sure you don't miss any dates.
I hope all this helps, and good luck!
------------------------------
Diane Sanzone
------------------------------