Add data row problem

I want to add new URL row in excel files
{CurrentRow(“Rank”).ToString+new Object(CurrentRow(“Firm Name / Headquarters”).ToString)+CurrentRow(“MP / CEO”).ToString+CurrentRow(“Net Revenue”).ToString+CurrentRow(“Url”).ToString}
can you check the error please


Hi @UJJVAL_BHAGAT

You need to use , in add Data Row. Try yhe below syntax:

{CurrentRow(“Rank”).ToString, (CurrentRow(“Firm Name / Headquarters”).ToString), CurrentRow(“MP / CEO”).ToString, CurrentRow(“Net Revenue”).ToString, CurrentRow(“Url”).ToString}

Regards

@UJJVAL_BHAGAT,

You should be pass array to Add Data Ro like below:
New Object() {CurrentRow(“Rank”).ToString, (CurrentRow(“Firm Name / Headquarters”).ToString), CurrentRow(“MP / CEO”).ToString, CurrentRow(“Net Revenue”).ToString, CurrentRow(“Url”).ToString}

Thanks,
Ashok :slight_smile:

@UJJVAL_BHAGAT

You need not do add row again as the data is already in datatable

The previous assign will take care of adding url in the respective column

After the loop just write back the datatable to excel

Cheers