# Request-local Variables

**URL:** <https://community.postman.com/t/request-local-variables/13741>\
**Category:** Help Hub\
**Tags:** new-feature\
**Created:** [June 29, 2020, 11:11pm UTC](https://community.postman.com/t/request-local-variables/13741 "2020-06-29T23:11:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrew.esh](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/andrew.esh/32/4844_2.png) [@andrew.esh](https://community.postman.com/u/andrew.esh)\
**Post date:** [June 29, 2020, 11:11pm UTC](https://community.postman.com/t/request-local-variables/13741/1 "2020-06-29T23:11:52Z")

</div>

I am trying to define a bunch of Requests for SOAP actions. For each one, I’d like to set a variable that is local to the Request itself, such as “my\_request\_name”. That way I can set a bunch of Preset fields like “SOAPAction” : “[http://myws.example.com/2020/07/MyWebService/IWebService/{{my\_request\_name}](http://myws.example.com/2020/07/MyWebService/IWebService/%7B%7Bmy_request_name%7D)}”. Then all I have to do is specify “my\_request\_name” once in each Request, and all my added fields are customized.

I can’t use the Environment or Collection variable name spaces, because the variable would only be right for one of the Requests, not each of them.

This could be implemented as another Request tab, like the “Params” one, but for “Variables”. Normal variable scope nesting would apply, with the Request variables being applied above Environment variables and below Data variables.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [December 12, 2024, 12:59pm UTC](https://community.postman.com/t/request-local-variables/13741/2 "2024-12-12T12:59:16Z")

</div>

Closed on December 12, 2024, 12:59pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
