Is there a filetype variable in Nintex workflow?


Badge +1

i.e. If my file is blahblah.doc it will return "doc"?

One of the steps in my workflow is to say "the document uploaded was a %whatever the filetype is%"  is there a variable that does this?


3 replies

Badge +11

Hi Arthur Pan,

There is no inbuilt file type variable but you can extract the extension from the file name.

Use regular expression in the workflow. The Pattern would be : .([A-Za-z0-9]+)$

Use the operation Extract. In the input text, use the filename. This will give you the required extension with '.'. Hope it helps.

Badge +1

Thanks Kapil!  I highly appreciate this!

Userlevel 4
Badge +7

Hi Arthur Pan

As an update to this you can use a set variable action, set the Equals drop down to List Lookup, Source to Current item and the field to Type.

This will give you the file type.

Hope this helps

Reply