Is it possible to make a configurable Build Data Table using Assign Activity?

Good day fellow RPA Developers,

I want to make a Data Table with a configurable number and configurable column names (the number may depends on the number of column names). It is like I will put all the column names in an array of string then it will make a Data Table.

Is it possible to make a configurable Build Data Table using Assign Activity or any activity?

Any kind of idea or help would be appreciated.

Regards,
Anthony Jr.

Hi,

Yes, as the following, for example.

If you need to datarow to it, please use AddDataRow activity.

Regards,

Or if you need to set type dynamic, DataColumnCollection.Add method with InvokeMethod activity will work.

Regards,

Both of the solutions are working but I prefer using this InvokeMethod activity approach.

Thank you sir @Yoichi !

1 Like

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