---
schema_version: "1"
id: c531e2ba87e6b42b8db72286baaa31b8d3f16f3a8aa312cddd22ce1315da208f
title: p
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.3/dw-mule-functions-p.md
canonical_url: https://docs.mulesoft.com/dataweave/2.3/dw-mule-functions-p
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 8e017a47ffc6aaf162fc5b8d1c2b8b22e76fa8138d4ffcfe30847c34743754fc
description: MuleSoft Documentation Site
release: "2.3"
latest: false
---
---
product: DataWeave
version: 2.3
---

# p

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

## p(String): String

This function returns a string that identifies the value of one of these input properties: Mule
property placeholders, System properties, or Environment variables.

The `p` function returns a `null` value if the property is not set or if the function does not find
the property.

For more on this topic, see
[Configure Properties](https://docs.mulesoft.com/mule-runtime/latest/configuring-properties).

### Parameters

<table><colgroup><col> <col></colgroup><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><p><code>propertyName</code></p></td><td><p>A string that identifies property.</p></td></tr></tbody></table>

### Example

This example logs the value of the property `http.port` in a Logger component.

#### Source

```xml
<flow name="simple">
 <logger level="INFO" doc:name="Logger"
   message="#[Mule::p('http.port')]"/>
</flow>
```

### Example

This example shows the password configuration for an Amazon S3 Connector connection to get an image
from Amazon S3. The `p` function returns a string that identifies the value of `secure::accessKey`
and `secure::secretKey` properties. The `secure::` prefix is used to access Mule secure
configuration properties.

#### Source

```xml
<flow name="simple">
 <s3:config name="Amazon_S3_Configuration" doc:name="Amazon S3 Configuration">
     <s3:basic-connection
       accessKey="#[Mule::p('secure::accessKey')]"
       secretKey="#[Mule::p('secure::secretKey')]"/>
   </s3:config>
 <s3:get-object config-ref="Amazon_S3_Configuration" bucketName="myBucket" key="maxImages/maxthemule.jpg"
     doc:name="Get object"/>
</flow>
```
