I want to apply multiple conditions (if else) while updating a field in csv file as below. How to achieve this in data weave?
Below is my payload.
Id, Name, Country, L4_Name, L5_Name, Region
1, ABC, ARE, L4_RH, L5_YN, US
2, PQR, ITI, L4_AB, L5_JW, CAN
3, XYZ, GPB, L4_PQ, L5_JW, EUR
4, MNE, ARE, L4_BN, L5_JW, KEN
I want to update column A of input csv file base don condition of column B. How we can achieve this in dataweave?
“Id”,”Name”,”Salary”,”Location”,”Date”
123,”Ganesh”,10000,”Pune”,”02/22/2020″
234,”Sanket”,20000,”Mumbai”,”02/20/2021″
345,”Mohan”,30000,”Kolkata”,”01/23/2023″
123,”Ganesh”,30000,”Chennai”,”02/28/2023″
234,”Sanket”,40000,”Goa”,”02/20/2024″
How to read space in XML field value using data weave | MuleSoft
I have a XML input and in one of the field its having space, using dataweve its treating space as null, I want to read the space as character.
Dataweave 2.0 issue
I have a input payload to a MuleSoft application like so …
Data weave transformation is taking more time for small data set
I am having below transformation which is taking significant time, and I tried many ways to optimize this.
Usage of Pluck function in the dataweave
Tring the below dataweave but its not able to achieve using pluck. Please help :