Skip to main content
June 23, 2022
Solved

Question about document() function.

  • June 23, 2022
  • 4 replies
  • 0 views

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.

    Best answer by peter.lewis

    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
    June 23, 2022

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

    mikes0011
    Brainy
    June 23, 2022
    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
    June 23, 2022

    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!