Play with brackets () {} [] and Complex If-else conditions It’s very important to understand the bracket available in Dataweave and how smartly we can use to yield different results based on their usage. Over here we play with brackets like () {} and [] to see them in action. Also we will look into…
Read MoreREMOVE INDENTATION IN JSON In this tutorial, we will see how we can remove indentation between the JSON elements. it’s a good practice to compress the JSON response when it’s returned to any web browser or mobile application. This will reduce the size of the JSON and become easy to transfer the JSON content.…
Read MoreIterate Fixed number of loop in Mule 4 using Dataweave In this tutorial we will demonstrate how we can iterate fixed number of loop in mule 4 using dataweave Below is the input you can see the size of the array is 6 but we need to iterate the list only 3 times on…
Read MoreJSON TO CSV Conversion In Mule 4 In this tutorial we will demonstrate how can we perform json to csv conversion in mule 4 and perform some more operations while converting to CSV UseCase-1 Sample JSON Create a sample mule application Write Transformation to convert json to csv Write file…
Read MoreUsage of filterObject In Dataweave In this tutorial we will demonstrate how can we use the filterObject in dataweave Using filterObject we can Iterates a list of key-value pairs in an object and applies an expression that returns only matching objects, filtering out the rest from the output. Step 1 We will use the…
Read MoreIf Else In Dataweave In this tutorial, we will demonstrate if else conditional expression in dataweave Input-1 Input-2 Input-3 Input-4 Now we will write a dataweave expression and manipulate the if the employee is eligible for discount on the basis of Input payload Create a sample mule application in anypoint studio and configure the…
Read MoreOnline Dataweave Debugging MuleSoft has provided an online Dataweave debugging platform where developers can go and test the Dataweave. We don’t need Anypoint Studio debugging mode to test the Dataweave. https://developer.mulesoft.com/learn/dataweave/playground It has mainly three section Input Explorer – we can add the input payload against which we want to test the Dataweave Script…
Read MoreDataweave Streaming In Mule 4 In this tutorial we will demonstrate how we can use dataweave streaming in mule 4 which is useful to process the large files in quickly without any memory issues which consume less resources compare to old way of reading and writing big documents. Supported Format JSON XML CSV Limitations…
Read MoreDATAWEAVE 2.3.0 NEW FEATURES In this tutorial we will demonstrate Dataweave 2.3.0 New Features, it is supported for mule runtime 4.3.0 or later. Update Operator A new update operator added as part of Dataweave 2.3.0 which is used to update the specific field with new value, earlier we used to go through all…
Read MoreManipulation On Array In Mule 4 In this tutorial we will demonstrate how can we do Manipulation On Array In Mule 4. To use this module, we first need to import DataWeave code, for example, by adding the line import * from dw::core::Arrays to the header of your DataWeave script Please find below few important Array…
Read More