Run different workflow for different (1st 3 characters) filenames

Hello @ayeo22

Hope you are trying to get all the file names and then split the filename and get the first 3 characters. Then use the if condition .

Do as below:

1). Directory.GetFiles(“folderpath”,”*.pdf”)
2) use a foreach loop to loop through the file names
3) use item.split(“_”)(0).ToString. (Gives the first 3 characters)
4) use if condition to check the filename condition