Skip to main content
This page will explain what mappers are and how they translate values from one system to another. The following mappers are available:
NameDescription
Apply operator to valueMaps a value based on the supplied operator.
Apply operator with prepared valuesApplies the operator on every item of the left and right array values.
Array or object: Count itemsReturns the number of items in an array or the number of keys in an object.
Array or object: Diff valuesReturns the values present in the input but not in the supplied data.
Array or object: Flip keys and valuesSwaps the keys and values of an array or object.
Array or object: Get valuesReturns the values of an array or object as an indexed array.
Array or object: Inherit from dataFills missing keys in the array or object from the supplied data.
Array or object: Join into string (implode)Joins array items or object values into a single string using a separator.
Array or object: Keep matching valuesReturns only the values that exist in both the input and the supplied data.
Array or object: MergeMerges the supplied data into the array or object. Existing keys are overwritten.
Array or object: ReverseReverses the order of items in an array or keys in an object.
Array or object: Split into chunksSplits an array or object into chunks of the specified size.
Array: Extract fieldGets the values for a single key from each item in an array.
Array: Fill with valueCreates an array filled with a repeated value at the specified length.
Array: Join into stringJoins array items into a single string using a separator.
Cast: BooleanConverts a value into a boolean (true/false).
Cast: FloatConverts a value into a float (1.00, 2.05, 10.50, etc).
Cast: IntegerConverts a value into an integer (1, 2, 3, 10, 25, etc).
Cast: StringConverts a value into a string (“abc”, “example”).
Chain mappersExecutes a list of mappers in sequence.
Filesystem: Resolve destination filename conflictEnsures a destination path is available on the filesystem. If a file already exists at the path, applies a conflict resolution strategy (for example, appending a counter: foo.json becomes foo-2.json).
Filter: Allow only digitsTakes the input and makes sure all non numeric characters are removed.
Filter: Allow only lettersTakes the input and makes sure all characters other than letters are removed. It means it will also remove spaces.
Filter: Allow only letters and digitsAllows only letters and digits; removes all other characters.
Format date valueConverts a date value to another format based on the given criteria.
Format number valueApplies number formatting to the input. Several arguments can be used to get the desired result.
Format to Form URL encodedConverts a data object or array into a Form URL encoded string.
Format to JSONConverts a data object or array into a JSON formatted string.
Format to URL encodedConverts a data object or array into a URL encoded string.
Format to XLSXConverts a data object or array into a binary XLSX file.
Format to XMLConverts a data object or array into an XML formatted string.
Format to YAMLConverts a data object or array into a YAML formatted string.
Format to cXMLConverts a data object or array into a cXML formatted string.
Format to selected formatConverts a data object into the desired output format.
Locale: Display regionGets the region for the locale string in the supplied language.
Map value using comparatorMaps a value to the ‘to’ value based on the comparator.
Map value using dictionaryConverts input from one value into another using a lookup dictionary. For example, the value “1” into “One”, “Yes” into “Si”, etc.
Map when a condition appliesApplies mappers when the conditions apply.
Math: absolute valueGets the absolute value for an integer or float.
Math: ceilRounds to the next highest integer.
Math: floorRounds to the next lowest integer.
Math: roundRounds a number to the provided precision.
Object: Diff keysReturns the keys present in the object but not in the supplied data.
Object: Get keysReturns the keys of an object as an array.
Object: Keep matching keysReturns only the keys that exist in both the object and the supplied data.
Object: Sort keysSorts the keys of an object based on the provided sort method and direction.
Parse from Form URL encodedConverts a Form URL encoded string into a data object.
Parse from JSONParses a JSON string into a data object.
Parse from URL encodedDecodes a URL encoded string into plain text.
Parse from XMLParses an XML string into a data object.
Parse from YAMLConverts a YAML string into a data object.
Parse from cXMLParses a cXML string into a data object.
Parse from selected formatConverts a string in XML, JSON, CSV, or other formats into a data object.
String: AppendAppends a string to the data.
String: Base64 decodeDecodes a base64 encoded string back to its original value.
String: Base64 encodeTakes the input string and converts it to a base64 encoded value. It can be used for example to create an identifier based on certain values in the data.
String: Capitalize first wordTakes the given input string and converts the first letter to a capital. This only works when en phrase starts with a lowercase letter.
String: Convert character set of stringConverts a string from one encoding to another.
String: Convert encodingConverts a string to the specified encoding. The from encoding must be known.
String: Convert to lowercaseTakes the given input and casts all letters to a lower case. The given input must be a valid string.
String: Convert to uppercaseConverts all letters in the input to uppercase.
String: CutCuts a string at the provided length value starting the count at the start value.
String: Decode HTML entitiesHTML decodes a string to human-readable text.
String: Encode HTML entitiesEncodes all HTML entities in a string.
String: Explode to an arrayTakes the given input string and converts it to an array/list based on a specified split character.
String: Explode to an array using a regular expressionExplodes a string based on a supplied regex.
String: Extract directory from pathExtracts the directory portion from a file path. For example, ‘/uploads/image.jpg’ returns ‘/uploads’.
String: Extract filename from pathExtracts the filename from a file path. For example, ‘/uploads/image.jpg’ returns ‘image.jpg’.
String: Generate dispersed file pathGenerates a nested directory path from a string, distributing files across subdirectories to avoid large flat directories.
String: HashHashes a string with the provided algorithm, the output can be a string or binary.
String: Parse file path into partsParses a file path into its components (directory, filename, and extension).
String: PrependPrepends a value onto a string.
String: ReplaceReplaces within a string based on a string comparison.
String: Replace using regular expressionReplaces part of a string based on the supplied regex.
String: SlugifyRemoves all non-alphanumeric characters and replaces them with hyphens (-).
String: Strip HTML tagsRemoves the HTML tags from a string. A set of tags can be supplied to be excluded.
String: TransliterateTransliterates a string based on the supplied transliterator. Can be used to change UTF-16 code units into single characters.
String: Trim charactersTrims characters from the left or right side of a string.