# How to automatically set new token's value as a dynamic variable and use this variable in my collection of requests?

**URL:** <https://community.postman.com/t/how-to-automatically-set-new-tokens-value-as-a-dynamic-variable-and-use-this-variable-in-my-collection-of-requests/19163>\
**Category:** Help Hub\
**Tags:** variables, dynamic-variable, collections, pre-request-script, tests\
**Created:** [January 14, 2021, 2:29pm UTC](https://community.postman.com/t/how-to-automatically-set-new-tokens-value-as-a-dynamic-variable-and-use-this-variable-in-my-collection-of-requests/19163 "2021-01-14T14:29:45Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![bpricilla](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/bpricilla/32/6511_2.png) [@bpricilla](https://community.postman.com/u/bpricilla)\
**Post date:** [January 15, 2021, 2:36am UTC](https://community.postman.com/t/how-to-automatically-set-new-tokens-value-as-a-dynamic-variable-and-use-this-variable-in-my-collection-of-requests/19163/3 "2021-01-15T02:36:18Z")

</div>

@orbital-module-sagan Welcome to the Community 💐

Yes as @praveendvd mentioned you can access the token by saving them in the variable depending on your scope.

Also if using OAuth2 toke, I suggest you to read this [post](https://community.postman.com/t/medium-article-how-to-automate-oauth2-token-renewal-in-postman/6630)

---

_[View the full topic](https://community.postman.com/t/how-to-automatically-set-new-tokens-value-as-a-dynamic-variable-and-use-this-variable-in-my-collection-of-requests/19163)._
