Hi,
i have array of string variable,
How to filter datatable with the array string variable,
I would like to avoid filter data table activities since there is lot of string i need to filter.
Thanks
Hi,
i have array of string variable,
How to filter datatable with the array string variable,
I would like to avoid filter data table activities since there is lot of string i need to filter.
Thanks
Hey @mashy2,
-Create a datatable and dont forget to initialize the datatable.Letβs say DT.
-Iterate your string array using foreach and inside the foreach use the statement below:
DT.Select(β[ColumnName]='β+item.Tostring()+β'β).CopyToDatatable(DT,LoadOption.PreserveChanges)
Hey @mashy2,
A Little correction Here:
DT.Select(β[ColumnName]=ββ+item.Tostring()+βββ).CopyToDatatable(DT1,LoadOption.PreserveChanges)
The datatable in the copytodatatable should be different.
In the Assign activity, you need to have the datatable in βToβ field different with the datatable being filtered in βValueβ field.
Hey @mashy2,
Use this inside invoke code and pass the input and output argument.
This error is being generated because you are copying and assigning the values to the same datatable.
do u got sample code?
Pls remove this part from your βValueβ field: after_filter,LoadOption.PreserveChanges
This wont work since it will check only column name not its item matching to the array.