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

Function

keyval( text, keys, separators, delimiters )

Returns the value(s) associated with the given key(s). This function performs the reverse of insertkeyval() function.

See also: insertkeyval()

Parameters

Keyword Type Description

text

Text

The text to parse.

keys

Text Array

Array of keys.

separators

Text Array

Array of key-value separators.

delimiters

Text Array

Array of delimiters specifying the end of a value.

Returns

Text Array

Usage considerations

Using the separators parameter

If a single separator value is passed, it is used for parsing all key-value pairs; if multiple separators are specified, the number of separators must match the number of keys.

Using the delimiter parameter

If a single delimiter value is passed, it is used for parsing all key-value pairs; if multiple delimiters are specified, the number of delimiters must match the number of keys.

Examples

keyval("hello=alpha][goodbye=beta]", {"hello"}, "=", "]") returns alpha

Feature compatibility

The table below lists this function's compatibility with various features in Appian.
Feature Compatibility Note
Portals Compatible
Offline Mobile Compatible
Custom Record Field Expressions Compatible
Open in Github Built: Fri, Aug 12, 2022 (09:54:06 AM)

On This Page

FEEDBACK