Pm.request name undefined

I’m currently following a guide where I can save response bodies as a txt file.
It is working but i wanted to name the response.txt file as the request name.

Unfortunately i don’t get the request name .

I’ve tried to use console.log (pm.requestName); but it gives me only undefined.
As well as for console.log(pm.info.requestName).

The Video which i am watching is this one

and at that point he shows how to get the request name through the debugger but for me there is no Request Name. Is this because my request name is undefined?

image