Hi
Hope these steps would help you resolve this
—once after getting the array variable use a FOR EACH activity and pass the above array variable as input and change the type argument as string in the property panel
—inside the loop use a IF condition like this item.ToString.Contains(“text 1234”)
If true it will go to THEN part and inside that leave it as it is and if false it will go to ELSE part where we can use a ADD TO COLLECTION activity where in the collection property mention as list_files where it is a variable of type system.collections.generic.list(of string) weigh default value as new list(of string) defined in the variable panel
—now next to this for each loop use another FOR EACH activity and mention the input as list_files and change the type argument as string in the property panel
—inside this loop use a MOVE FILE activity and in the path property mention as item.ToString and in the destination property mention as item.ToString(Path.Getfilenamewithoutextension(item.ToString),”test 1234”)
But it will create all file name with same name
Which won’t allow us to create
So for that include a timestamp along with this
Like in the forest for each loop within the then part use a move file activity mention like this
In path property as item.Tostring and in destination property mention as Path. Getfilenamewithoutextension(item.ToString)+”_”+now.ToString(“hh_mm_ss”)+Path.GetFileExtension(item.ToString)
Similarly in the last for each loop also mention like this item.ToString(Path.Getfilenamewithoutextension(item.ToString),”test 1234”+”_”+Now.ToString(“hh_mm_ss”))
That doesn’t matter buddy whether the array has one value or not
For each will iterate the available number of elements in the array
Cheers @the.christopoulos
Kindly try with for each activity for array or list or any kind of collections
For each row is used for iterating through datatable
Cheers @the.christopoulos