Please, What activity can we use to make the robot repeat a process?
My robot takes an excel information from the website, extracts the information from the website. But I need him to return to excel and take the information that is in the sequence and do the same procedure for all lines.
You can use Excel application scope then Read that data using Read Range and Using For each row you can iterate each row of excel
then in Body of for each you can use process for each row
However, my problem is that I am managing to perform the whole activity only once. I need the robot to continue consulting the sequence according to the excel table.
Are you saying that you get excel doc (Excel A) from a website
read Excel A
do stuff for each row in Excel A
then when done with Excel A, you go back to website to get a new Excel doc (Excel B)?
If so then you need a loop on the get excel doc process, and then inside that loop will contain the loop for the do stuff for each excel file.
Outline
read source list of website, docs,whatever
Loop 1
–Go to website and get excel file
–read excel file
–Loop 2
----do stuff to excel file
–end loop 2
end loop 1
I am sorry but I do not think I understand your workflow. Is your robot crashing after the first iteration or completing? Can you provide the steps you would take to do the process manually?
just to clarify, you get a row(from a list) of data from a spreadsheet A, open browser, get new data list. write this new data to the spreadsheet A, then move on to next row in Spreadsheet A?
Where are you writing the new data on spreadsheet A, is it in new columns in the same row of data?
If i understand you correctly:
Read spreadsheet A as dt1.
create a new dt called dt2
For each row in dt1
–Open Browser to URL
–Get data from site (What format is this information?)
–append data from site to dt2
After the for each row, write dt2 to New sheet in Spreadsheet A.
If you need a new tab for each item in spreadsheet A , then move the write step into the for each row activity, but be sure to clear out dt2 at end of activity(or at start).
Not sure what you mean by “repeat a sequence listed in excel”. For each row will iterate through each row in the dt specified. So if you read range into a dt, then for each row in dt will work.
Okay, but, My problem is that my For Each Row is reading only the first line, it does not follow the sequence of the excel list, it always returns on the first line.
Use output data table on your read range result from the excel file, assign the output variable then use write line the output variable and see what it has, does it have all the rows?
What is the target of your read range, can you post an image?