I’m building an email address validator that checks to see if an email address is still active (see here) testRow email checker.xaml (13.0 KB)
The file uses a free online validator and Types In email addresses from a csv list. I got as far as Getting Full Text results from the validator, but I don’t know how to store the results back onto the csv in the next column, and then saving the csv.
Sorry it took me so long to get back to this project. I got everything working except every row is reading “Invalid”. I noticed you have an IF condition for categorizing the results. There are actually three different possible results. I’m perfectly happy just to get the full text written into the spreadsheet. The full text is showing up in the output window of UIPath, so I know that’s working. I tried removing the IF condition but now nothing is writing to the spreadsheet. Please advise.
By “it’s not writing to the file” what do you mean? Are there errors?
From what it looks like is you read the datatable from the CSV then you write the same datatable without changing anything back to the file, so it might be working but you aren’t changing anything in the datatable.
To change something you might use an Assign activity to set the validation column with a value so it updates the datatable.
On the “For Each” you have Foreach row in email.
“row” can be used in the Assign activity to put values in specific columns within each row of the datatable.
For example —> row.Item(“columnname”) = “value”
, that says make the cell in the column equal to the value as a string
Alternatively, there are a few other ways to access a cell in the datatable, but for what you need we can keep it simple like the example.
You must also need to make sure that the column you are assigning exists in the datatable. You can add a column using the “Add Column” activity, if your spreadsheet doesn’t include the column initially.
So what we end up with for your Assign activity is with “Validation” as your columnname…
Yeah, still can’t get it to work for some reason. It’s ok though, I’m just cutting and pasting the output from the output window into the spreadsheet and it’s working fine. Thanks for your help Clayton.