How to use click activity depending on the current year

Hello,

Please help, is there any way where the robot can automatically select the folder with the current year in its name?

For example, I have 3 folders:
2022
2023
2024

Here’s the scenario:

Hi @mr_nobody

Could you please let us know what is the next step??

Regards,

Hello @lrtetala,

I just want the robot to double click the folder with current year then after the robot double click the folder it will continue to the sub folder; it will repeat the robot to check if there’s a folder with current date then double click again:

@mr_nobody

Welcome to the community

For this you would not use ui

instead use PathExists activity and use Path.Combine("BaseFolder",Now.Year,Now.ToString("ddMMMyyyy")) … this will check if there is an year folder and if there is a todays date folder under it and returns a boolean to say exits or not

if yes then use the path as you need

cheers

1 Like

Hello @Anil_G,

I already used the PathExist activity, but it will not take effect on my requirements. Here’s the scenario that I want to achieve:

Use click activity:

  1. Click Desktop
  2. Click Infolink
  3. Click BDO
  4. Check if there’s a folder with the current year has been exist using a click activity (note: I have many folders with a year I just want the robot to click automatically where he finds the folder with a name of the current year)

@mr_nobody

Are they not local folder?

is it in some application?

Looks like you are trying to open some excel if so use excel file is what you need to use

tell the requirement may be we can say what exact activity to use

cheers

Hi @mr_nobody

Can you try the below

Sequence18.xaml (18.2 KB)

Regards,

1 Like

@lrtetala,

Thank you for teaching me!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.