Modern Activity For each row Datatable

Hi Team,

i am seeing For each row in DataTable Activity in Modern activity little bit different

passing DataTable variable instead of Property it is something in for each activity, i feel confused… am i deviating anywhere… sorry if i am asking any silly…

Hi,

Probably you need to convert your value ‘CurrentRow(0)’ to string or integer to match the data type of AccountNum :slight_smile:

1 Like

Hi @devasaiprasad_K

Try the below syntax:

CurrentRow(0).ToString

Hope it helps

1 Like

Hey @devasaiprasad_K ,

When you have currentrow(0) , it would indicate the location of value you want to fetch.

In order to get the value and store into the variable
AccountNum, try using the data conversion upon the currentRow(0) reference.

Either currentRow(0).Tostring

Or

Cint(currentRow(0).Tostring)

Hope this helps you out.

Thanks,
Gautham.

try CurrentRow(0).tostring
or Cint(CurrentRow(0).tostring)
it depends on AccountNum datatype

@devasaiprasad_K - What data type is AccountNum ? If it’s a string, add .ToString() as mentioned above. If it’s an integer, write Convert.ToInt32(CurrentRow(0)) .

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