List of Collection getting repeated for first accountb

Hi I have two accounts that I am iterating, so as per the requirement I am supposed to login and then type an account number, thereafter I am supposed to do get full text. I am creating a variable after every get full text and passing it to List1 which is collection of strings.

Activities performed are

  1. login
  2. Read CSV
  3. Build Data Table
  4. Assign (List1=new List(of String)
  5. For Each Row in data table
  6. Assign (CurrentRow=Account)
  7. type into (Account.toString)
  8. Get Full Text (variable is page1)
  9. Add To Collection (where Collection is List1 and Item is page1)
  10. Click (next button to go to the next screen)
    I am going to continue get full text again and add the variable to collection followed with clicking on next till the time I do not get exit option.

In my case i am iterating between 2 accounts (first account has variables for get full text as page1 and page2 and second account has page1, page2, page3) I am using image exist to identify exit button and passing the image exist variable (xyz) to IF activity

  1. IF xyz = true,
    Then click on exit,
    else
    do get full text – add to Collection–click on next–exit

  2. Outside IF activity I am using Assign
    (outputlist=string.join(", "List1))

To check I am doing Write line (outputlist.toString)

it seems that the first account is getting read twice (I have added the text file as a sample where i have mentioned the the part getting picked up from first account)
example4.txt (2.2 KB)

Can anyone suggest how to get this fixed

li

Can anyone help please :pray:

Hi @dipon1112000

Not understand the proper logic. But you can put a check before adding the the Variable in List.

Hope it will helps you :slight_smile:
Cheers!!

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