Hi, I’m quite a newbie in UiPath, trying to test my first project.
I have a Google form which will convert to Google Sheets for the entries from users.
Need to check whether one of the new entry is duplicated or not compare to the value of other row in the same column.
For example, if a new entry of username in the new row is duplicated to the other row in column “username”, then a message box will popup to warn user to change the username.
I know the basic concept of GSuite Application Scope, but a step by step instruction will be very helpful for a newbie like me.
Read the excel and store the values in a data table
Get the row count and store in a variable
Declare and initialize a array of length row counts which you get in step 2
Then iterate the data table and store all the values to the array by passing the index. To pass the index, declare a variable of type integer and then increment it in the for each row activity and pass that integer value as the index of the array
Then check if the value exists using array.contains(“new value”)
For Each Row in dt > ? Should I use Add To Collection to store all the values to the array? Can you elaborate more detail or a xaml sample will be appreciated.
If arrayRowCount.contains(“new value”) Then / Else