I tried map and filter on duplicate map with mapObject but no progress. How do I solve this? I need to create a nested array using the response received from different API. I have this flat array, with all the data. What would be the best approach to create a nested array where the...
Note: first JSON structure is an object second JSON structure is an array though it has 0 or 1 element always. policyName1 to policyName6 always needs to be in the output irrespective of whether the second JSON array contains something or not. Decomposing the problem into its parts, I use...
Hi @Manish Yadav thanks for feedback 🙂 But this solution is correct only if we have to filter those 2 products but there could be many more products to filter, we do not know before, it depends on the payload that is sent to us. EG INPUT: [ {"product": "K...
Message : java.io.IOException: 4: Failure (org.mule.api.MuleRuntimeException). Element : /blah/processors/5 @ blah-ms:blah.xml:73 (Object to String) --- Exception stack is: java.io.IOException: 4: Failure (org.mule.api.MuleRuntimeException). (org.mule.api.transformer.TransformerMessagin...
DataWeave pluck function: How to transform an Object into an Array DataWeave reduce function: How to loop through and transform an Array into a different type How to extract the keys from an Object in DataWeave using keysOf, namesOf, or pluck How to compare different data types in DataW...
In.readObject().asInstanceOf[T] } finally { streamIn.close() } } def serialize[T](objectToSerialize: T): Array[Byte] = { val byteArrayOutputStream: ByteArrayOutputStream = new ByteArrayOutputStream() val oos = new ObjectOutputStream(byteArrayOutputStream) try { oos.writeObject(objectTo...
Try for free Sign up to Anypoint Platform Download Anypoint Code Builder, Studio, Mule For Business Teams MuleSoft for Flow: Integration Point to point integration with clicks, not code MuleSoft IDP Extract unstructured data from documents with AI MuleSoft RPA Automate tasks with bots Dataloader....
© Copyright 2025Salesforce, Inc.All rights reserved. Getting Started Docs by Product Skip to main content RPA Builder(6.1) Toolbox Variable Handling Set Array Variable Back to top Did this article solve your issue? Let us know so we can improve!
First group by Doc, mapObject() to get the minimum of each group, then pluck() to get the expected output. %dw 2.0 output application/json --- payload groupBy ((item, index) -> item.Doc) mapObject ((value, key, index) -> (key): min(value.Number) ) pluck...
Is possible to replace only the description value keeping the rest of the fields? Avoiding adding the other fields in the mapping. </object> Upvote Answer Share 4 answers 308 views ryanandal 6 years ago Hello @mchuecos_everis You can try this approach, %dw 2.0 output application/json -...