Skip to main content
banshp0001
New Participant
May 24, 2021 10:35 AM UTC
Question

How can we get original file name of an uploaded file?

I need to store original file name into database of the uploaded excel sheet. Please suggest if we have any smart service or plugin for the same.

3 replies

New Participant
May 24, 2021 11:07 AM UTC

We can make use of the document() function to get the uploaded filename.

document(ri!docmentId,"name")

mikes0011
Brainy
May 24, 2021 2:08 PM UTC

The original file name is inherently kept unless you override it, either at upload time or perhaps via renaming afterwards (in both cases, the original filename would no longer be stored anywhere within Appian as far as I know).  Otherwise, ashok's answer above is correct.  Do you mind sharing what you've tried and what seems to not be working correctly?

The Expression Guru
banshp0001
New Participant
May 24, 2021 2:17 PM UTC

Thanks Mike, will share the result.