document() Function
This function may not be compatible with all features of Appian. For details, see the Feature Compatibility section below.

Function

document( documentId, property )

Returns property information for a document.

Parameters

Keyword Type Description

documentId

Number

The Id of the document. This parameter accepts document objects as well. Document objects are represented by their Id number internally.

property

Text

Information to retrieve for this document.

Returns

Text

Usage considerations

The property parameter accepts the following case-sensitive values:

  • dateCreated
  • description
  • expirationDate
  • extension
  • folderId
  • folderName
  • id
  • knowledgeCenterId
  • knowledgeCenterName
  • lastUserToModify
  • lockedBy
  • name
  • totalNumberOfVersions
  • pendingApproval
  • size
  • approved
  • changesRequireApproval
  • url

Examples

You can copy and paste these examples into the Expression Rule Designer to see how this works.

document(101,"expirationDate") returns 12/21/05 2:28 PM GMT

Feature compatibility

The table below lists this function's compatibility with various features in Appian.
Feature Compatibility Note
Portals Partially compatible

Can be used with Appian Portals if it is connected using an integration and web API.

Offline Mobile Partially compatible

Can be used with offline mobile if it is loaded at the top of the form.

Custom Record Field Expressions Incompatible
Open in Github Built: Wed, Aug 10, 2022 (11:20:24 PM)

On This Page

FEEDBACK