QuestionQ51

VerifiedTransform and format data with DataWeave

Refer to the exhibits.

A web client sends sale data in a POST request to the Mule application. The Transform Message component then enriches the payload by prepending a vendor name to the sale data.

What is written to the sales.csv file when the flow executes?

Question Image

Question Image

Explanation

The DataWeave script explicitly specifies output application/json and creates an enriched object by combining vendor: "Acme" with the sale data. The File Write operation writes that transformed payload; a .csv filename alone does not transform JSON into CSV. MuleSoft documents that CSV output requires an application/csv output directive or equivalent File Write content configuration.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!