Skip to main content
Vishnuprasad Mishra 님이 #MuleSoft DataWeave에 질문했습니다

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개