dataweavemulesoft

How to access a property name in URI params in Mulesoft


I'm trying to access a property in HTTP Request connector URI Params, But it doesn't seem to be working Here's the way I generally access ${property_name} in all the places, but it's not resolving the property name specifically in URI params. What could be the issue?


Solution

  • Try using p('property_name') instead.

    ${property_name} is based on Mule expression language and It's supported only in specific contexts like in configuration files *.xml, *.yaml.

    p('property_name') is a DataWeave expression function and it's fully supported within all DataWeave expression blocks. It's the preferred way to access properties when writing DataWeave scripts.