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.
Discussion posts and replies are publicly visible
These are ancient relicts from the old days and are not relevant for the way we built Appian apps nowadays.
Unknown said: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 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!
additionally (AFAIK) the ones relating to Expiration are rooted in the now-deprecated Folder Expiration functionality that's nearly impossible to access anymore.