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

Dear Postman people,

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

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?

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