How to set filters in the Browse For File activity

When using the Browse For File activity, there is a specific format that will be parsed. The basic format of one filter is:

Label|filter

For example:

image
image

You can add multiple filters using pipe (|) and the basic format is:

Label|Filter|Label|Filter

image
image

Or you can combine multiple extensions into one filter, so the window is limited to certain types of files but the user doesn’t have to select them:

Label|Filter;Filter

image
image

You can also mix the two. For example we want the pulldown to show PDF or TIF, but TIF can be .tif or .tiff:

Label|Filter|Label|Filter;Filter

image

image

If you have trouble with the Filter value not sticking, it acts strangely. After changing the Filter you have to tab or click away from the Filter property to make the value stick.

Also, the filters don’t have be just for extensions. You can use any filter ie *test* to find all files with test in the name:

image
image

Here is Microsoft documentation:

1 Like