Activity: Select File - Filter Does not Accept Variables?

Hi folks,

Activity: “Select File”
Property: “Filter”

Does anyone know if the above activity’s “Filter” property accepts variables or not? My testing shows that the activity fails if you store the filter in a String variable and then attempt to pass that variable into the activity’s “Filter” property. Perhaps something to do with the property’s accepted variable type (i.e., most activities requiring a String are listed as needing “InArgument[string]”, whereas this activity just lists “String”, and when putting a string in this property, you do so without the quotes (" "))?

I am trying to pass the “Filter” property as a string argument from another workflow.
Anyone have any workarounds?

In XAML File you can change the property, maybe its a bug from UiPath.

Bless

1 Like

I have other way, check this with Invoke Code.

Bless

Main.xaml (5.8 KB)

1 Like

@inf_L
Thanks! Definitely could be a bug with the select file activity, but your workaround works, and that’s what I was asking for!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.