KB-1441 Could not find variable 'env!clientMode' using a!recordLink()


The following errors are seen when using a!recordLink() to generate a URL for a record:

ERROR:An error occurred while evaluating expression: =rule![RULE_NAME] (Could not find variable 'env!clientMode') (Data Inputs)
Expression evaluation error in rule 'RULE_NAME' at function a!recordLink: Could not find variable 'env!clientMode'


SAIL functions like a!recordLink() return internal system data types. Parsing the fields of the returned system data type in an expression causes the error described in this article and is not supported because they often change between versions and hotfixes. 


Use the OOTB functionality included with urlforrecord() instead of building a link by parsing the output of a!recordLink()

Affected Versions

This article applies to all versions of Appian.

Last Reviewed: December 2017