How to replace the value in the Datatable

Hi Team

How to replace the value in the Datatable

Screenshot_2

Value 1 → value n

What am I doing wrong?

IF Condition would be

row(“Name”).tostring.contains(“Value 1”)

Thanks
@Aibek_Abubakirov

3 Likes

@hasib08 Thanks, I managed to find Value

But how now to replace a certain value with value n ?

@Aibek_Abubakirov Since you’re using a For Each Loop, in if Condition after you find the Value Which you want, you can use an Assign Statement :
row(“ColumnName”) = yourValue

1 Like

In if condition use Replace function

Thanks
@Aibek_Abubakirov

1 Like

Hi @Aibek_Abubakirov after condition is true then use assign activity row(“Name”)=“n”

2 Likes

Screenshot_4

Finds but does not replace

Hi @Aibek_Abubakirov Use Write Range after the loops end.

1 Like

Thank you all for your help :+1: :+1: :+1:

1 Like

You can also take look at this:
Replace Values in a DataTable without foreach