Hi there,
I am downloading 6 excels and at the same time checking for validity of the excels. If one excel i wan it it be removed from the folder and keep the valid excels. How do i achieve this?
Hi there,
I am downloading 6 excels and at the same time checking for validity of the excels. If one excel i wan it it be removed from the folder and keep the valid excels. How do i achieve this?
You can use Delete File Activity to delete the file that did not pass the validity check. This takes a file name of the file to be deleted as input.
Hope this helps. Please provide more details otherwise
Thanks
Hi
() ACTIVITIES
“COMMENTS”
((CRITERIA TO DELETE))
DO THIS:
(For Each File in Folder)
Then {
(If) ((CURRENTFILE.NAME.contains("ER")))
Then {
"TRUE"
(Delete File) activity
}ELSE{
"FALSE "
}
}
Grettings
Hi @Mark_Rajkumar How to define whether the excel is valid or no? For other steps try below
Var of type Array Of strings = Directory.GetFiles("fodlerpath","*.xlsx")
For Each
activity to loop through each fileDelete File
activityThis topic was automatically closed 3 days after the last reply. New replies are no longer allowed.