I wanted to update record field with fv!index.
I have
Recrod type
filed1,
field2,
field3
field3 should update with foreach index
Discussion posts and replies are publicly visible
If you're looping through records using a foreach, you can use an index to update field3 like this:
foreach
int index = 0; foreach (var record in records) { record.field3 = index; index++; }
This way, field3 will hold the index value for each record.