Appian Hidden Functions by Low Code Lab
Appian Hidden Functions by Low Code Lab
some awesome
HIDDEN FUNCTIONS
IN APPIAN
NOT!
FROM THE
OFFICIAL
DOCS
MARTIN CAMACHO
APPIAN ENTHUSIAST
LOW CODE LAB
try()
Allows for some level of error handling within
Appian. It can return a specified value if an
error occurs during the execution of the code it
wraps. However, it does not catch all types of
expression errors
fn!lastError()
Can be used to query the error from a try()
function, providing details about the error that
occurred
LOW CODE LAB
code example
In a scenario where you want to execute a piece
of code that might fail, for example, a division
operation that could potentially lead to a
division by zero error, you could use the try()
function to attempt the operation and
fn!lastError() to handle any error that occurs.
LOW CODE LAB
eval()
Evaluates text as SAIL code, similar to
JavaScript's eval function. It can be used to
dynamically execute code based on text input.
code example
In this example, the eval() function is used to
dynamically execute the updatedictionary()
function. The string to be evaluated is passed as
an argument to eval(). This string includes an
Appian function (updatedictionary()) that updates
a dictionary by setting the value of a key.
LOW CODE LAB
sort()
Sorts an array (text, number...) in ascending
order.
LOW CODE LAB
lambda_appian_internal()
In many programming languages, a lambda function
is an anonymous function defined on the fly,
usually at the point where it's needed.
LOW CODE LAB
copy to clipboard
Here is a code snippet that demonstrates how to
implement a "copy to clipboard" functionality in
Appian interfaces using hidden or undocumented
functions:
LOW CODE LAB
NOT!
FROM THE
OFFICIAL
DOCS
MARTIN CAMACHO
APPIAN ENTHUSIAST