# Script to copy the value of a Current variable to an Initial variable?

**URL:** <https://community.postman.com/t/script-to-copy-the-value-of-a-current-variable-to-an-initial-variable/36453>\
**Category:** Help Hub\
**Created:** [June 22, 2022, 8:56am UTC](https://community.postman.com/t/script-to-copy-the-value-of-a-current-variable-to-an-initial-variable/36453 "2022-06-22T08:56:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vvdkuij](https://avatars.discourse-cdn.com/v4/letter/v/53a042/32.png) [@vvdkuij](https://community.postman.com/u/vvdkuij)\
**Post date:** [June 22, 2022, 8:56am UTC](https://community.postman.com/t/script-to-copy-the-value-of-a-current-variable-to-an-initial-variable/36453/1 "2022-06-22T08:56:46Z")

</div>

Dear Postman people,

Does anyone know of a script to copy the value of a Current variable to an Initial variable?

---

<div class="post-metadata">

**Author:** ![w4dd325](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/w4dd325/32/12436_2.png) [@w4dd325](https://community.postman.com/u/w4dd325)\
**Post date:** [June 22, 2022, 10:21am UTC](https://community.postman.com/t/script-to-copy-the-value-of-a-current-variable-to-an-initial-variable/36453/2 "2022-06-22T10:21:41Z")

</div>

Hi @vvdkuij

For what purpose?  
Could you please provide a bit more information on what you are trying to do and what you have tried?

---

<div class="post-metadata">

**Author:** ![vvdkuij](https://avatars.discourse-cdn.com/v4/letter/v/53a042/32.png) [@vvdkuij](https://community.postman.com/u/vvdkuij)\
**Post date:** [June 22, 2022, 11:00am UTC](https://community.postman.com/t/script-to-copy-the-value-of-a-current-variable-to-an-initial-variable/36453/3 "2022-06-22T11:00:39Z")

</div>

Hi, we talked about this yesterday.  
Via a request I fill in a current variable. However, I cannot retrieve it via a Mock because it always takes the Initial variable.  
So I look for a script that can copy the current value to the Initial value
