Reset variable like the button

Huhu,
I searched and googled a lot now but I am either blind or expect too much from postman

There is this lovely button Reset Variable

image

Why is there no easy way to use this button via script? Or is there some way? I just want to remove “clear” certain variable with “null”. I don’t want to delete them.

I really hope someone is able to help me. Postman is already driving me nuts and it is been 2 days since I am trying to build a special test in it.

Cheerio
Yki

Hi @ykisaragi1

Have a look at these two links;

https://www.postman.com/praveendvd-public/workspace/postman-tricks-and-tips/collection/8296678-c053b94a-fd95-4acd-aa67-81bc6d80528b

1 Like

Huhu @w4dd325
I saw that script but it didn’t work well. If there is a function built in within the client. why not simply using it. Instead of this workaround?

Thank you anyway for the support =)

As far as I am aware the button function/code is not accessible from the pm. API.