How do i add different columns between a datatable


Hi,

I want to add column in column b and c and then column f another column. How do i do it?

@mark_rajkumar1

if needed in excel you have insert column activity

if you need in datatable then use invoke method with setOrdinal

give the index of the column where to be inserted …index starts from 0

cheers

cheers

Hi @mark_rajkumar1

Use the Insert/Delete Columns activity.

To Insert Between B and C

  • Set the ColumnIndex to 3 (since columns are 1-indexed: A=1, B=2, C=3).
  • This will insert a new column before C, effectively placing it between B and C.

To Insert at Column F

  • Set the ColumnIndex to 6 to insert a column before column F.

All the best.

Hi can i have a workflow

Hi @mark_rajkumar1 ,
please check below screenshot.

Use the Add Data Column activity to add the columns. Then use the Filter Data Table activity and on the second tab set it to “Keep” and list the columns in the order you want.

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