Document in Folder

Certified Associate Developer

Hi All

Newbie to Appian.

Trying to find, by date & time, the latest (most recently uploaded) document in a folder; this is as far as I have got in an expression I am playing around with:


  items: folder(1234, "documentChildren"),

  expression: document(fv!item, "dateCreated")


Any good examples to help me finish this off, or can anyone suggest how to loop through each document and return the newest?

Example Algorithm in pseudo code I would like translated to Appianese.

MostRecentlyUploaded = initial ‘zero date’

For Each Documents Creation Date

              If Documents Creation Date > MostRecentlyUploaded Then

                             MostRecentlyUploaded = Documents Creation Date

              End if

End For

Return MostRecentlyUploaded /* The most recent date */



  Discussion posts and replies are publicly visible

Parents Reply Children
No Data