For each folder in folder activity filter option

Hi Team,

I am using for each folder in folder activiy and I am trying to use the filiter option to only check the “IDs” folder however it’s ont working how can i solve this?

@omar_ismail

You mean you need file with IDs in the name?

If so use "*IDs*"

Cheers

@omar_ismail

My Bad "IDs" should be working

Can you show your folder structure does the folder name contain IDs in it?

cheers

i tried “IDs” but it’s not working

image

@omar_ismail

  1. Check the main folder you have given is correct
  2. Use a log message inside the first loop before the second for loop and see if it is going in

cheers

Hi @omar_ismail

You already given the filter name properly. Try this one, by checking the Include Subfolders option in the For each folder in folder activity.’

If it doesn’t work take a if condition inside the for each folder in folder loop give the condition like

CurrentFoler.Name.toLower.toString.Contains("IDs").toLower.toString

Hope it helps!!

Hi @omar_ismail
Try this

CurrentFolder.Name.ToString.Contains(“IDs”)

Sorry it’s my wrong. @omar_ismail
Store the IDs in a variable like

  • Assign → StrVar = “IDs”
CurrentFolder.Name.ToLower.ToString.Contains(StrVar.ToLower.ToString)


solution

Hi @omar_ismail

CurrenFolder.Name.ToLower.ToString.Contains(“IDs”.ToLower.Tostring)

try the above syntax

Hope it works !!

@omar_ismail Take an assign activity and create a variable like Strvar
In assign activity give like this Strvar = “IDs”
In if conditon give like this

CurrentFolder.Name.ToLower.ToString.Contains(StrVar.ToLower.ToString)

If you only want to check the IDs folder, why don’t you just designate that as your “In folder”?