See the supported connectors for Application Integration.

SIZE function

SIZE function

Function Name Description Usage Input parameter Return value
SIZE Counts the number of elements in an array. SIZE() N/A Total number of elements in an array.

Supported data type

The SIZE function supports the following data types:

  • Boolean array
  • Double array
  • Integer array
  • JSON
  • String array

Example 1: Find the size of a string array

Sample data: $var1$ = {"Hello", "Apigee", "Integrations"}

Usage: $var1$.SIZE()

Count the number of elements in var1.

Output: 3

Example 2: Find the size of an integer array

Sample data: $var1$ = {5,8,2,1,7}

Usage: $var1$.SIZE()

Count the number of elements in var1.

Output: 5

Recommendation