How to reorder columns in datatable

studio

#1

I have datatable with columns: URL, Location, Name. I need the ‘Name’ column as the first column. How do I do this?


#2

Hi @shrutika

You can find your answer over here: :slight_smile:


#3

I tried the given solution but I keep getting this error error

This is the invoke method:

Is there a way other than invoke method?


#4

@shrutika did u set parameters in properties? Check also whether u assigned readrange output to datatable varibale u have declared


#5

What parameters do I need to set?


#6

@shrutika u have set target column number to where column name in invoke method should be moved.

Capture

above image is parameters property Like above image value represents to where u present column has to be moved. In image i am moving to first 2nd column(since column numbers starts from 0)


#7

Thank you