Mulesoft

Mulesoft Anypoint Platform Components

Mulesoft Anypoint Platform is a cloud-based platform that provides a range of tools and services for building, deploying, and managing integrations and APIs (application programming interfaces). The platform includes the following components: Anypoint Studio: A development environment for building integrations and APIs using the Mule runtime engine. Anypoint Exchange: A central repository for APIs and integrations, where developers can discover, share, and reuse assets. Anypoint Platform: ...

Mulesoft Reduce Function Examples

The reduce function in mulesoft is used to perform reduction operations like finding the sum of all values in the array, multiplying the array values, concatenating the strings in the array, and many other operations. The syntax of the reduce function is inputArray reduce (item, acc) -> item + acc Here item holds the current value of the array and acc is the accumulator that holds the result of the reduce operation. An initial value can be set to the accumulator. In this article, ...

Mulesoft DW Core Functions Examples

The DW core functions are primarily used to transform data. These functions are imported automatically into the mule project and can be used in components like transform, set payload, and many others. In this article, we will see some of the most commonly used core functions with examples. Concatenation Operator (++) The concatenation operator, ++, is used in the following scenarios To concatenate two strings. To concatenate two arrays. To concatenate two objects. This opera ...

Mulesoft MapObject Function Examples

The MapObject function in Mulesfot is one of the most commonly used functions that allows you to transform data from one format to another within a Mule application. It can be used to convert data between JSON, XML, and other formats, as well as to map data between different structures or schemas. The MapObject is used to iterate over each key-value pair in a JSON object. To use the MapObject function, you will need to create a mapping configuration file that defines the source and target dat ...

Mulesoft HTTP Listener and HTTP Request Connector Examples

In Mulesoft the HTTP listener and HTTP Request connectors are the most widely used. The HTTP listener component is used to listen for any incoming client requests. The HTTP Request connector is used to make requests to other APIs. In this article, we will see how to create the HTTP listener and request components with Mule code. Mulesoft HTTP Listener Connector Example It does not matter whether the API is developed in Mulesoft or any other tool, there should be an HTTP component that k ...

Mulesoft Salesforce Connector With Examples

Mulesoft has so many connectors available that can connect to multiple applications. Mulesoft can also connect to the salesforce CRM application through the connector. The salesforce connector is free to use and there is no need to purchase a separate license for it. in this article, we will see how to query data, and insert and update a record in salesforce with examples. Configuring Salesforce Connector Before performing the operations, we have to add the salesforce connector as a de ...

Mulesoft Map Function Examples

The Map function in Mulesoft is used to iterate over an array of objects or values. In this article, I will explain the usage of the Map function with examples. The syntax of the Map function is payload map(value,index) -> { key: value } Here the index is the position of the object or value in the array starting from zero to n-1 and the value is the complete object. The following JSON array example is used throughout in the examples as input. [ { "tool" : "mulesoft" ...

Mulesoft DataWeave Transform Examples

To Transform the data, Mulesoft has provided the dataweave code. The DW code can be used in components like transform message, set payload, and other supported components. Mule 4 supports DW 2.0 and Mule 3 supports DW 1.0. In this article, we will cover data transformations in Mule 4 only. Here, I have provided multiple examples that help in your day-to-day Mule activities. Mule 4 DW 2.0 Transformation Examples The following examples require data input. Here I am using XML and JSON inpu ...

Create API in Mulesoft

Mulesoft is an integration tool that is used to create APIs. Mulesoft recommends following API-led connectivity to create APIs. This connectivity consists of 3 layers which are described below System API: This layer connects to the applications like databases, and file systems for reading or writing data. The system layer can be reused across multiple integrations. Process API: The process layer contains the business logic where the requirements are specific to a business use case. Experi ...