How to change default Column names generated from Generate Data Table Activity

How to change default Column names(Column1,Column2…) generated from Generate Data Table Activity.

@RajeshT,

Try with the highlighted option in the Generate Data Table activity.

1 Like

Hi @sarathi125 ,

Thank you for the response.
If i check this option,column headers are not adding but i want to change the column names to my own column names.

Hi @RajeshT
Try using as below
YourDt.column(yourCurrentColumnName).ColumNname= yourNewColumnName

You can use this inside loop as well such as
While i< yourDt.columns.count

Hope this will work for you.
Thanks

2 Likes

hi @Deepak94,

I am getting below error,when i am using while activity:
image

image

Hi @RajeshT,
Can you try using it as below.
FilterData.column(i).ColumNname=“PolicyNumber”

BTW, what is the value assigned to var PolicyNumber?
Make sure increment i.

FilterData.column(i).ColumNname=“PolicyNumber”
This is working fine @Deepak94 .

Thanks ton!!

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