![]() |
| |||||||
Automation Anywhere Post messages and questions related to Automation Software here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
|
Hi, I'm trying to loop through a series of task to run from a folder followed by another task using a loop. So if the series of task is a,b,c,d,etc. and the side task is 1, I want to create a third task that runs in the following manner: a-1-b-1-c-1-d-1-e-1 etc. Is there a way to do this with the loops function or is the only way possible is to use create a task chain. I hope that makes sense. |
| |||
| Quote:
|
| |||
|
Hello Nam, We recommend you to try using Loop command over here using the option of "Each file in a folder" with the combination of Run task command. It will allow you to call all the tasks present in particular folder to run one by one and you will not be required to select every Task to be called to run in Master task. Note: You will have to save the task in different folder which will contain only the tasks which are required to be run one after another. Follow the following series of commands to achieve the required purpose: 1 Start Loop " Each File in My Documents\Automation Anywhere\Automation Anywhere\My Tasks\SubTasks" 2 If $Extension$ Includes "atmn" Then 3 Run Task "$CurrentDirectory$\$FileName$.$Extension$" @Repeat : Do Not Repeat @Speed : Normal Speed @Pass variable as argument : Do Not Pass variable 4 End If 5 End Loop Please notice here we have used "SubTasks" folder is containing all the Tasks. |
| |||
| Quote:
|
| |||
|
This is what you suggested I tried: However, using the "Run Task" I have to enter a specific task. I cannot use variable input with the $ as you suggested above. |
| |||
|
Hello Nam, To insert the variables, mentioned in the suggestion mentioned above, press F2 in the area where path of the Task has to be entered. Insert all three variables one by one, as shown in previous response. Hope this helps. |
| |||
|
I'm sorry but I know F2 inserts the function. My problem is that the "Run Task" function doesn't allow for it to be done. I attached a picture. You can't input variables into that line I boxed. That's why I want to know if there's another way to loops through a series of tasks in a file.
|
| |||
|
Hello Nam, We understand that the version of Automation Anywhere you are using, could be older version. Earlier there was an issue, which we fixed in latter version of Automation Anywhere 6.1. So currently if you download the latest version of Automation Anywhere, it will allow you to insert the variable in Run Task Window. Please view the screen shot attached with the post for your reference. http://www.automationanywhere.com/Do...e-setup610.exe |
![]() |
| Thread Tools | |
| Display Modes | |
| |