From the course: UiPath: Robotic Process Automation (RPA)

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Difficult: Delete a data table row

Difficult: Delete a data table row - UiPath Tutorial

From the course: UiPath: Robotic Process Automation (RPA)

Difficult: Delete a data table row

- [Instructor] In the previous videos, we have created a data table, added rows, looped through the rows and examined the contents. Now let's go ahead and see how to delete a table row. Here inside the robot, I'm building a table and adding two rows, so let's go ahead and copy and paste that row and add one that we can delete. So for FirstName, I'll just say Delete, SecondName Me. So now we're going to have three rows in our database. And inside here in the for each, I'm going to leave this for each row as it is, and I'll Control + C to copy it, and paste it one more time here. So now we're going to loop through our data table two times, but in this first one, after I log the message, I'm going to go into my Activities here and use remove data row and drop it right there. So as usual, it's asking me which data table are we going to delete from, so that's this guy right here, MyDataTable. I'll paste that in. It's asking which row do we want to delete. If I have the RowIndex, I could…

Contents