Skip to main content
parmida.borhani
Employee
July 25, 2017

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

  • July 25, 2017
  • 0 replies
  • 11 views

Symptoms

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'

Cause

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. 

Action

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