Closed karan221 closed 1 week ago
Hello @karan221 Rendering is not enabled in the script as you are able to read variables directly from script, may I know the use case?
If you really want to render it, you could try something like this:
console.log(
insomnia.collectionVariables.replaceIn(
insomnia.environment.get('recursive_variable')
)
);
Thanks this will work
Expected Behavior
Pre Request Script
Actual Behavior
Pre Request Script
Reproduction Steps
Add base env variable -> { "base_variable": "value" } Add sub env recursive variable -> { "recursivevariable": ".base_variable" }
Run the pre-request script
Is there an existing issue for this?
Additional Information
No response
Insomnia Version
v9.2.0
What operating system are you using?
macOS
Operating System Version
13.6.3
Installation method
hombrew
Last Known Working Insomnia version
No response