Add Data Column with value

Hey UiPath Forum Community,

I have used ExtractedDataTable activity to pull the data from the website. Now I want to add a new column in the dataTable variable in which I have stored the ExtractedDataTable data.

Now for an example, if the ExtractedDataTable has 250 rows I want to add a new column named as date and want to write the current day date. However, the date part is done but I don’t know how to add the date into the new column.

Any help will highly be appreciated.

Thank you.

Hi @Muhammad_Anas_Baloch

Use Add Data Column Activity and in column name give the column name you want to add in double quotes and data table is to which data table you want to add.

Regards

1 Like

Hi

Can you try to use AddDataColumn activity with DefaultValue property as the following?

DateTime.Now.ToString("MM/dd/yyyy")

Regards,

2 Likes

Hi @Muhammad_Anas_Baloch

By Using Add Data Column activity you can add the Column to your Extracted DataTable,
Give the Column Name which you want to specify.

1 Like

@Muhammad_Anas_Baloch
By using Invoke code we can add column and assign data-
attached below image’
Datatable with 2 column

Output

1 Like

Hi

Use Add Data Column activity and Give the Column Name which you want to specify. you can add the Column to your Extracted DataTable.
image

Thank you

1 Like

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