Concatenate (Simple)

Concatenates an incoming array of data into a string.

Version 1

HTTP Request
POST /ado/v1/SimpleConcatenate

Header

ParameterDescription
Ocp-Apim-Subscription-KeyThe subscription key you received when you purchased a plan.

Request Body

Mandatory

ParameterTypeDescription
dataObject[]Array containing one or more primitive objects.

Optional

ParameterTypeDescription
separatorStringEach word determined from the field property will be separated by this string.
ignoreEmptyBooleantrue will ignore all item values that are either null or empty strings.

Default is false.

Common

Further Documentation: Common Parameters

ParameterTypeDescription
filterStringA fully functioning SQL WHERE statement that will filter the resulting dataset to the records it determines as being included.
sortOrderStringSorts the resulting dataset in the desired direction (i.e. ASC or DESC).
schemaObjectYou can use this parameter to override the inferred schema of properties in the incoming dataset(s).
A field will be inferred unless specific explicitly within this object.
advancedOptionsObjectIs an object with the following properties.

cultureName (String)
The specified culture determines the behaviour for aspects like formatting numbers and dates. Is extremely important when converting strings to dates, i.e. 05/03/2022 will determined differently between locales. For more information on the accepted values for this property, please consult the documentation from Microsoft … https://docs.microsoft.com/en-us/dotnet/api/system.globalization.cultureinfo?view=net-6.0#culture-names-and-identifiers

isBoolean (string[])
A list if strings that are the names of all properties in the resulting dataset that should be treated as boolean.

By default, the framework treats boolean values as 1 (true) or 0 (false). In order to differentiate the integer as a boolean, that property needs to be explicitly called out in this list.

Examples

Basic (Sorted)
Ignore Empty Values

A very basic numeric array (but represented as strings) is loaded and concatenated using a comma.

Request

{
    "separator": ",",
    "sortOrder": "ASC",
    "data": [
        "4",
        "6",
        "1",
        "3",
        "2",
        "5",
        "7"
    ]
}
Code language: JSON / JSON with Comments (json)

Response

1,2,3,4,5,6,7
Code language: JSON / JSON with Comments (json)