How to add column names to data column variable

How to add column names to data column variable type

myDataColVar.ColumnName = “ABC”

Hi,
I hope this will help you,

  1. Drag and drop the “Build DataTable” activity onto the workflow.
  2. In the Properties pane, click on the “Columns” field.
  3. In the “Collection Editor” window, click on the “Add” button.
  4. Set the properties for the first column:
  • “ColumnName”: “Name”
  • “DataType”: “System.String”
  1. Click on the “Add” button again to add a second column.
  2. Set the properties for the second column:
  • “ColumnName”: “Age”
  • “DataType”: “System.Int32”
  1. Click on the “OK” button in the “Collection Editor” window.

Thank u

@Demo_User

  1. Using the “Build DataTable” activity:
    a. Drag and drop the “Build DataTable” activity onto your workflow.
    b. In the Properties panel, click on the “Edit Schema” button.
    c. In the “Column Editor” window, click on the “Add Column” button.
    d. Enter the column name in the “Column Name” field and select the appropriate data type from the “Data Type” dropdown.
    e. Click “OK” to add the column.
    f. Repeat steps c to e for each additional column you want to add.
    g. Close the “Column Editor” window.
    h. Assign the resulting DataTable to your desired variable.
  2. Using the “Add Data Column” activity:
    a. Drag and drop the “Add Data Column” activity onto your workflow.
    b. In the Properties panel, specify the DataTable variable in the “DataTable” field.
    c. Enter the column name in the “ColumnName” field and select the appropriate data type from the “DataType” dropdown.
    d. Click the “Add Column” button to add the column.
    e. Repeat steps b to d for each additional column you want to add.