Create a Data Table with an assign activity

Hi.

I want to create a Data Table with an assign activity. I do not want to use a Build Data Table, as it does not work with the UiPath.System.Activities 21.4.1 package.
The Data Table I want to create should consist of two columns that contain strings. How do I do it without the Build Data Table activity?

Thanks in advance.

@fanny.j

Welcome to our UiPath community.

We should use Build DataTable activity to create DataTable.

May I know what error are you getting here ?

If you have existing DataTable then you use below expression to create DataTable with Headers only.

           NewDT = InputDT.Clone

Hi,

We need Assign activity and InvokeMethod activity for it. Hope the following helps you.

Regards,

1 Like

This is the error message I get.
1

That it does not work I base on this post, Uipath datatable - #6 by scott.booher

This works! Thanks so much for the help! :grinning:

1 Like

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