Data Mapping functions

TheData Mapping task provides various predefined mapping functions to transform and standardize the mapping data in your integration. A mapping function can have one or more input parameters, wherein each parameter can further hold a literal value, a variable, or a base function with mapping functions applied. You can use multiple mapping functions for a single input source, forming a mappingtransform expression.

The following table lists the predefined mapping functions available in theData Mapping task.

FunctionDescription
ADDAdds the specified number to an existing number.
ANDPerforms the logical AND operation on the specified boolean values.
APPENDAppends the specified value to an array.
APPEND_ALLAppends all the specified values to an array.
APPEND_ELEMENTAppends an element to a JSON array.
AVGCalculates the numerical average of all the values in an array.
CEILComputes the smallest integer that is greater than or equal to the given input.
CONCATConcatenates the specified characters to an existing string.
CONTAINSChecks the occurrence of the specified value in a given string or string array.
DECODE_BASE64_STRINGDecodes a base64 string to UTF-8 charset.
DIVIDEDivides an existing number by the specified number.
EQUALSCompares the specified value with the existing value.
EQUALS_IGNORE_CASECompares the specified value with the existing value.
EPOCH_TO_HUMAN_READABLE_TIMEConverts Unix epoch time (in milliseconds) to human-readable time format.
EXPONENTCalculates the value of an existing number raised to the specified power.
FILTERFilters the array elements that satisfy a given filter condition. Note that a filter condition must evaluate to TRUE or FALSE.
FLATTENFlattens a JSON array recursively to create a new one-dimensional array.
FLOORComputes the greatest integer that is less than or equal to the provided input.
FOR_EACHApplies one or more transformation functions for each element in an array.
GETReturns the value in an array at a specified index. In an array, the first value is available at index 0 and the last value is available at index n-1 where n is the size of the array.
GET_ELEMENTReturns the element at the specified index in a JSON array. In the array, the first value is available at index 0 and the last value is available at index n-1 where n is the size of the array.
GET_PROPERTYReturns the value of the specified property in a JSON object.
GREATER_THANChecks if an existing number is greater than the specified number.
GREATER_THAN_EQUAL_TOChecks if an integer is greater than or equal to the specified value.
LENGTHCalculates the length of a string. The length of a string is the number of characters in the string.
LESS_THAN_EQUAL_TOChecks if an integer is less than or equal to the specified value.
LESS_THANChecks if an existing number is less than the specified number.
MAXFinds the highest value in an array.
MERGEMerges two JSON variables (objects or arrays). If same value is present in both the variables, the function removes the duplicate value.
MINFinds the lowest value in an array.
MODDivides two values and returns the remainder of the division operation.
MULTIPLYMultiplies an existing number by the specified number.
NANDPerforms the logical NAND operation on the specified boolean values.
NORPerforms the logical NOR operation on the specified boolean values.
NOTReturns the opposite value of a boolean.
ORPerforms the logical OR operation on the specified boolean values.
REMOVERemoves the specified value from an array.
REMOVE_ATRemoves an element from an array at the specified index.
REMOVE_PROPERTYRemoves a property from a JSON object.
REPLACE_ALLReplaces all the occurrences of a substring in a string.
RESOLVE_TEMPLATEResolves references in a template string that contains $variable$ references.
ROUNDRounds a number to the nearest integer.
SETUpdates the value of a string array at the specified index.
SET_PROPERTYAdds or updates a property in a JSON object.
SIZECounts the number of elements in an array.
SPLITSplits a string based on the specified delimiter.
SUBSTRINGReturns the substring of the current string from the start index inclusive to the end index exclusive.
SUBTRACTSubtracts the specified number from an existing number.
SUMAdds all the values in an array.
TO_BASE_64Encodes a string to base64 format using the UTF-8 charset.
TO_BOOLEAN_ARRAYConverts a JSON array to a boolean array.
TO_BOOLEANConverts a string to a boolean data type.
TO_DOUBLE_ARRAYConverts a JSON array to a double array.
TO_DOUBLEConverts a string or an integer to a double.
TO_INT_ARRAYConverts a JSON array to an integer array.
TO_INTConverts a string to an integer.
TO_JSONConverts the current value to a JSON object.
TO_LOWERCASEConverts all the characters in a string to lowercase.
TO_SETRemoves duplicate values in an array.
TO_STRING_ARRAYConverts a JSON array to a string array.
TO_UPPERCASEConverts all the characters in a string to uppercase.
XNORPerforms the logical XNOR operation on the specified boolean values.
XORPerforms the logical XOR operation on the specified boolean values.
GENERATE_UUIDGenerates a random UUID.
GET_EXECUTION_IDReturns the execution ID of the current integration.
GET_INTEGRATION_NAMEReturns the name of the current integration.
GET_INTEGRATION_REGIONReturns the region of the current integration.
GET_PROJECT_IDReturns the Google Cloud project ID of the current integration.
INT_LISTReturns an integer list between the specified values. The returned list is inclusive of the starting value and exclusive of the ending value.
NOW_IN_MILLISReturns the current Unix epoch time of the integration in milliseconds.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-02-19 UTC.