Reset datatable

Hello friends,
@rkelchuri, @Ninett_Panfir, @Rammohan91, @balupad14, @Florent_Salendres, @vvaidya, @Palaniyappan, @ClaytonM, @vvaidya, @lakshman, @Dave,

how is it possible to reset a datatable to a new empty one with defined columns?

Thank you,

1 Like

There are two cases in it @CamiCat
–one if we want to create a datatable in BUILD DATATABLE ACTIVITY and get the datatable as a output in which we wish for only columns with no rows then
we can use CLEAR DATATABLE ACTIVITY next to this build datatable activity which will clear all the records keeping only the schema of the datatable


if we are trying to create a similar datatable like another datatable @CamiCat
No worries
here you go
hope this would help you and its resolved (10.4 KB)

kindly try this and let know for any queries or clarification
Cheers @CamiCat


@CamiCat Yes you can clear datatable by using activity called Clear Data Table

Hi @CamiCat
You can use CLEAR DATATABLE Activity. Or you can Just assign Nothing to Your datatable variable like this Datatablevar = Nothing.


is it working buddy
kindly let know for any queries or clarification
Cheers @CamiCat

1 Like

@CamiCat Have a look on newEmptyDataTable = datatableVar.Clone statement as well

1 Like

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