Mapping Rule Built-ins for Simple Multi-Valued Fields - RapidIdentity Platform Documentation

RapidIdentity Platform Documentation

Solution
Application
Content Type
Technical Documentation
Utilities & Services
ft:locale
en-US
The built-ins in the following table work when the input data contains multiple values (an array or list of strings). For arrays of objects with sub-fields, see MR Built-ins for Advanced Multi-Valued Fields.
Built-in NameArgumentsOutputsExample
[] (array index)Integer index (zero-based)Element at the specified indexorgs[0]
calcGradYear(Optional) Cut-off month for school year rollover. The default is 6.Projected graduation year based on the input grades, in CEDS formatgrades.calcGradYear()
containsElement to look fortrue if the input contains any element that exactly matches the argument, false otherwiseif (roles.contains("administrator")) "staff" else roles
containsAnyAny number of elements to look fortrue if the input contains even one of the specified arguments exactly, false otherwiseif (roles.containsAny("administrator", "teacher", "staff")) "staff"
containsExactlyAny number of elements to look fortrue if the input contains exactly and only the specified arguments, false otherwiseif (locations.containsExactly("District Office")) "District Staff" else "School Staff"
isListEmptyNonetrue if the list has no elements. This built-in handles null and empty lists. It also works on advanced multi-valued fields.if (teacherGroups.isListEmpty()) "student" else "staff"
isListNotEmptyNonetrue if the list has at least one element. This built-in handles null and empty lists. It also works on advanced multi-valued fields.when { teacherGroups.isListNotEmpty() -> "staff" else -> "student" }
listCountNoneThe number of elements in the listroles.listCount()
Note:The single-valued isEmpty() and isNotEmpty() built-ins operate on string fields. Use isListEmpty() and isListNotEmpty() for multi-valued fields. These built-ins correctly distinguish between a field that is absent from the source record and a field that is present but contains zero elements.