Hi,
I have created a custom DataWeave module for mappings and inside the custom mapping I am I trying to read the value from request header by using attributes.headers[parameterValue] but it is throwing below error
Unable to resolve reference of attributes.
However when I use the same syntax without creating a custom DataWeave module I am able to get the result. It seems when creating custom DataWeave module the scope of DataWeave predefined variables (attributes, vars..) is not available inside custom DataWeave module. I am not sure if this is known issue or I am doing something incorrect.
9 Antworten
How do we pass the whole mule message object directly to a function?