/
getFields

getFields


Function: getFields()

Gets the field names of a record.

Syntax

getFields(set)

ArgumentTypeDescription
setRecordset or Structured Data

The Recordset or Structured Data (see Understanding Data Types) to get the fields list from.

The getFields function will return each field name defined for the data as an array, except for special internal field names (such as the stream_item_id).

Examples

The getFields function will return a list of field names. These can be extracted using normal array functions and assigned to a variable.

$fields = getFields(in) // ["foo", "bah", "field3"]
$field  = $fields[1]       // $field = "foo"
$value  = in.$field         // equivalent to in.foo

The dot notation supports dynamic access to fields when variables are used within the expression, in this case, $field = "foo" so in.foo will be assigned to $value.

See Also


Related content

Type Conversions
Type Conversions
Read with this
getFields
getFields
More like this
Configure Active Directory Integration
Configure Active Directory Integration
Read with this
set
More like this
listToString
listToString
Read with this
set
More like this