Links

Intellisense

Learn more about Digibee Integration Platform Intellisense
Digibee's Intellisense displays functions and Globals that you can request directly from the connector form as you create the pipeline. This way, you can fill out your connectors easier and faster.
In this article, we will use the connectors REST V2, Transformer (JOLT) and JSON Generator connectors to exemplify Intellisense.

Example

In the REST V2 connector form, you must enter a URL to access a certain endpoint. When you click on the URL field, Intellisense is displayed on the right side of the screen.
In this example, we will use the endpoint http://api.zippopotam.us/us/{{ DEFAULT(message.zipCode, "11368") }}. After processing the output using the Transformer (JOLT) connector, the following JSON is displayed when we run Test mode:
{
"status": 200,
"statusMessage": "OK",
"body": {
"postCode": "11368",
"country": "United States",
"country abbreviation": "US",
"places": [
{
"placeName": "Corona",
"longitude": "-73.8611",
"state": "New York",
"stateAbbreviation": "NY",
"latitude": "40.7453"
}
]
}
}
In the output of the endpoint, note the fields “country”, “postCode”, “placeName”, “state”, and “stateAbbreviation”. We will use these fields to create a new output for this pipeline using the JSON Generator and the Double Braces REPLACE, TOINT, and CONCAT functions presented by Intellisense.
Note that in the output, the value of the field "country" is “United States”. Imagine that we want to remove the space between the first and second word. To remove this from the pipeline output, we can use the REPLACE function, as shown in the following GIF:
Suppose we need to convert the String value of the field “postCode” into an integer value. In this case, we use the TOINT function:
Suppose I want to display the address by concatenating “placeName”, “state” and “stateAbbreviation” in the pipeline output. Using the CONCAT() function, we can concatenate any messages and words we want.
Note: There is no limit to how many fields we can concatenate using this function. If the field does not exist in the message to be handled, the connector ignores the request.
So, this will be the result of the execution:
{
"country": "UnitedStates",
"postcode": 11368,
"address": "Corona - New York - NY"
}
In addition to the features presented in this article, there are others available in Intellisense. To learn more about them, read the article Double Braces Functions. The resources of this functionality will be added in the next releases of the Platform.
\