A web client sends a request to http://localhost:8081?dept=sales.
What is the correct DataWeave expression to access the value of dept?
A web client sends a request to http://localhost:8081?dept=sales.
What is the correct DataWeave expression to access the value of dept?
The correct DataWeave expression to access the value of 'dept' from the query parameters in a URL is 'attributes.queryParams.dept'. This syntax is used to retrieve query parameters from the request attributes in MuleSoft.
Its A. Correct
https://developer.mulesoft.com/tutorials-and-howtos/dataweave/how-to-retrieve-custom-headers-query-uri-parameters-dataweave/