Hi Alex,
You're completely right that the "Delete Column" command in IBM RPA allows for the deletion of only one column at a time. To work around this, you have two main options:
- Sequential Deletion
- You can run the "Delete Column" command multiple times, once for each column you wish to remove. This method is straightforward but can be time-consuming if you have many columns to delete.
- Looping Method
- An alternative approach is to use a loop to iterate through a list of columns you want to delete. Below is some pseudo code to get an idea of what I mean
list_of_columns_to_delete = ["Column1", "Column2", "Column3"]
// Loop through each column name in the list and delete it from the DataTable
for column_name in list_of_columns_to_delete:
deleteColumn --column column_name --dataTable yourDataTable
For more detailed instructions you can refer to the IBM RPA documentation: https://www.ibm.com/docs/ru/rpa/23.0?topic=table-delete-column
------------------------------
Martin Medina
------------------------------
Original Message:
Sent: Thu March 07, 2024 02:51 PM
From: Alex Virrueta
Subject: Delete Columns
Hi, I'm trying to delete more than one column from a DataTable, the command "Delete Column" allows 1 column.at once.
How can I perform this action
Thanks.
------------------------------
Alex Virrueta
------------------------------