Skip to main content

Operations

This function allow you to manipulate both arrays and strings, making it possible to perform several operations with these type of data.

Array operations​

With this function you can manage the response of other functions, making it possible to operate with arrays.

Input parameters​

SectionParametersUsageMandatory
GeneralSelect Array OperationsSelect in the list the operation you want to performYes
Source ArrayThe array to manage, usually the path to your data schema or a response variable of another functionYes
Split*Split intoNumber of parts the array will be split intoNo
Preserve keyWhen set to YES keys will be preserved. Default is NO which will re-index the chunks numericallyNo
Filter*Select a FilterFilters elements of an array applying filter function to each elementNo
DepthUntil which level within the array you want to apply the filter. This value must be between 1 and 10. The default value is 1Yes
Filter Parameters**NeedleThe value you are searching forYes
Merge*Source Array 2Joins the elements of one or more arrays together so that the values of one are appended to the end of the previous one. Example array1 | array2. The arrays have to be separated by vertical line β€œ|” character.No
Insert Parameters*Item to insertThe element that will be inserted at the end of the array. Beware: the item to be inserted is expected to be quoted in case it's a string, otherwise it will take it as an integer and inserts null. True/false would work as they would be inserted as true/false booleans.No
Reverse Parameters*Preserve keysWhen set to YES keys will be preserved. Default is NO which will reindex the chunk numerically.No
Search*JSON Paththe JsonPath documentation.No

* This section of parameters will appear depending on the operation chosen in the input Select Array Operations.

This section of parameters will appear depending on the filter chosen in the input Select a Filter**.

Response parameters​

ParameterContent
array_resultContains the result of the function.
errorThe error message if exist.

Text functions​

Perform some transformations to texts inside a flow.

Input parameters​

SectionParametersUsageMandatory
GeneralTextThe text to format. Usually a variable from your data schema or the output of another function.Yes
MethodThe method that will be applied on the stringYes
String Pad*LengthThe length of the padNo
Pad stringThe pad_string may be truncated if the required number of padding characters can’t be evenly divided by the pad_string’s lengthNo
Pad typeChoose to pad at right, left or both sides of the stringNo
String repeat*MultiplierThis value must be greater than or equal to 0. If the multiplier is set to 0, the function will return an empty stringNo
Uppercase words*DelimitersEvery letter after these character will be capitalized. Default value is \t\r\nNo
Substring*Start positionPosition to begin when cutting the substring. Default values is 0, starting from the beggingNo
LengthLength of the final string to be returned. If no value is specified and start position is 0 the complete string will be returnedNo
String position*NeedleThe string you are searching for.No
OffsetPosition to start searching fromNo
String case-insensitive position*NeedleThe string you are searching for.No
OffsetPosition to start searching fromNo
String replace*SearchString to be replaced.No
ReplaceNew string to be appendedNo
Preg match*PatternPattern you are using to find matches in a textNo
Preg replace*PatternThe pattern to search forNo
ReplacementThe text to replace by the pattern found on the subject textNo

Response parameters​

ParameterContent
resultOutput of the function performed.
errorError message if exists.

JSON PATH​

Operators​

OperatorDescription
$The root element to query. This starts all path expressions.
@The current node being processed by a filter predicate.
*Wildcard. Available anywhere a name or numeric are required.
..Deep scan. Available anywhere a name is required.
.<name>Dot-notated child
['<name>' (, '<name>')]Bracket-notated child or children
[<number> (, <number>)]Array index or indexes
[start:end]Array slice operator
[?(<expression>)]Filter expression. Expression must evaluate to a boolean value.

Filter Operators​

Filters are logical expressions used to filter arrays. A typical filter would be [?(@.age > 18)] where @ represents the current item being processed. More complex filters can be created with logical operators && and ||. String literals must be enclosed by single or double quotes ([?(@.color == 'blue')] or [?(@.color == "blue")]).

OperatorDescription
==left is equal to right (note that 1 is not equal to '1')
!=left is not equal to right
<left is less than right
<=left is less or equal to right
>left is greater than right
>=left is greater than or equal to right
=~left matches regular expression [?(@.name =~ /foo.*?/i)]
inleft exists in right [?(@.size in ['S', 'M'])]
ninleft does not exists in right
subsetofleft is a subset of right [?(@.sizes subsetof ['S', 'M', 'L'])]
anyofleft has an intersection with right [?(@.sizes anyof ['M', 'L'])]
noneofleft has no intersection with right [?(@.sizes noneof ['M', 'L'])]
sizesize of left (array or string) should match right
emptyleft (array or string) should be empty