Insert column before last column

Manpreet Saini

New Member
Hi Everyone,

my requirement is to insert column before the last column . For eg - if my last column is Z so i need to insert column before Z column .

Any one could help me in this will be a great help..
Thanks
 

Sachin_Kharmale

Active Member
Hi @Manpreet Saini ,

If you want to add new column before last column follow the bellow approach,
You need to design a code in object.

1) Add New action in object and add one code stage.
Note- Code is design in c#.net so choose programming language as C# in init page.

1637070416662.png
2)Code stage Input is Input Collection and New Column to add in existing collection.
1637070464618.png
3)Now input collection contains 3 columns.
1637070495847.png
4)Write bellow code in code stage.
1637070534291.png
5)Code stage output is OutputCollection.
1637070575657.png
6)Run the action and get the result.
Note- input collection have 3 Column after executing code stage new column is added before the last column Now output collection contains 4 column.

1637070950859.png

I hope it will help you.
 

Attachments

  • 1637070638465.png
    1637070638465.png
    55 KB · Views: 8

vinod2644

New Member
Hi @Sachin_Kharmale I have followed same steps as you described. I am getting empty collection as output. I don't see any compile errors in my code. Can you tell the name spaces and dll's which are required for this code
 
Top