---
title: "__setProperty"
description: "JMeter __setProperty function reference: syntax, parameters, and practical examples for parameterizing test plans with dynamic values."
url: https://docs.jmeter.ai/functions/setproperty/
lastUpdated: 2026-10-01
source: docs.jmeter.ai
---

# __setProperty

*Also documented in context in the [full Functions and Variables reference](/user-manual/functions/#__setProperty).*

The setProperty function sets the value of a JMeter property.
The default return value from the function is the empty string,
so the function call can be used anywhere functions are valid.

The original value can be returned by setting the optional 3rd parameter to “`true`”.

Properties are global to JMeter,
so can be used to communicate between threads and thread groups

| Name | Required | Description |
| --- | --- | --- |
| Property Name | Yes | The property name to be set. |
| Property Value | Yes | The value for the property. |
| True/False | No | Should the original value be returned? |

## Related

- [Functions and Variables Guide](/topics/functions-and-variables/)
- [Regex Extractor Builder](/tools/regex-tester/)
- [Full Functions Reference](/user-manual/functions/)
- [Component Reference](/user-manual/component-reference/)
