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?
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?
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.
Thanks Kapil! I highly appreciate this!
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
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.