Assume i want to create a workflow where i need to login into website in declared time period.
lets say there is XYZ website which is available between 6 am to 6 pm daily & rest of the time it is unavailable. Can we train the BOT to check the current time & if the time is between 6 am to 6 pm it should login to website & if the time is between non available hours BOT should not try login to the site.
Please advise if it is possible…?
if yes How?
You can do this by scheduling the bot in orchestrator
what is there are two websites one is available for 24 hrs & one is between 6 am to 6 pm.
still it is possible with single Robot
you can still work with single robot
make two process as two websites have their own automation flow i believe
and schedule one process with 6 am to 6 pm and another process with 24 hrs
But is there any way i can make declare it in workflow…?
can i declare a time of 6 am to 6 pm in the workflow, if it doesn’t meet the condition it will not execute to open website
yes, you can try like below
- Place a If Condition
- DATETIME.Now.Hour = 6 OrElse DateTime.Now.Hour < 18
It will give you true or False, accordingly place your logic
I would go with @ksrinu070184 but with small correction
Like this in IF activity
DateTime.Now.Hour >= 6 AND DateTime.Now.Hour <= 18