Skip to main content
Nintex Community Menu Bar

Is there a filetype variable in Nintex workflow?

  • Jun 7, 2016 9:55 PM UTC
  • 3 replies
  • 30 views
  • Translate All

Forum|alt.badge.img+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

Forum|alt.badge.img+11
  • Scholar
  • Jun 8, 2016 1:29 PM UTC

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.

Translate

Forum|alt.badge.img+1
  • Author
  • Jun 22, 2016 11:24 PM UTC

Thanks Kapil!  I highly appreciate this!

Translate

Forum|alt.badge.img+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

‌ ‌ ‌ ‌

Translate