Skip to main content
Known Participant
Jun 23, 2022 6:20 AM UTC
Solved

Question about document() function.

Hello,

I am using "document()" Function, and found out that there are property parameters such as [expirationDate / lockedBy / totalNumberOfVersions / pendingApproval / approved / changesRequireApproval /url].

There is not enough explanation in the Appian documentation( https://docs.appian.com/suite/help/22.2/fnc_scripting_document.html ).

I want to know what each property parameter is for. And how to use each property parameter.

(For example, is there a place that I can set the property "expirationDate", and where does the appoval properties come from?)

Thank you.

    peter.lewis
    Employee
    Jun 23, 2022 8:50 PM UTC

    The only one that is fairly new is the URL - this was added in 20.3 to make it easier to access the link of a document (for example if you need the link in an email).

    The majority of these are still useful, but these aren't: lockedBy, pendingApproval, approved, and changesRequireApproval.

    I'll see if we can get the docs updated to clarify this!

    4 replies

    stefanhelzle0001
    Brainy
    Jun 23, 2022 7:38 AM UTC

    These are ancient relicts from the old days and are not relevant for the way we built Appian apps nowadays.

    mikes0011
    Brainy
    Jun 23, 2022 3:54 PM UTC
    These are ancient relicts

    I don't believe that's true for all of the properties OP was asking about.  "totalNumberOfVersions" and "url" may even be relatively new, IIRC.

    The Expression Guru
    peter.lewis
    Employee
    Jun 23, 2022 8:50 PM UTC

    The only one that is fairly new is the URL - this was added in 20.3 to make it easier to access the link of a document (for example if you need the link in an email).

    The majority of these are still useful, but these aren't: lockedBy, pendingApproval, approved, and changesRequireApproval.

    I'll see if we can get the docs updated to clarify this!