Ability to send variables to top of list - shortcut

variables
#1

I currently have a few different environments that require me to have a large set of variables.

I just ran into that situation where I have to add a new “High priority” variable. Those items are the ones that I like to have at the top of my list. At the current time I would have to drag the item to the very top of this list. Now this isn’t an issue when you have <30-50 variables. I believe I have 100+ variables at this time for those environments. It takes a LONG time to drag variables to the top and currently there is no way to make it faster.

Would it be possible to either create a “Send to top” on the variables options(Ellipses on the far right), OR make the scrolling faster in order to scroll through that list faster to get where I need to be.

OR
If you have any suggestions on what I should be doing differently to avoid these issues?

#2

As a workaround, which is not ideal but something for now…

If you export the environment file and open that up in a text editor, you could add your “High Priority” variable object to the top of the values array, in the JSON file.

{
	"id": "1234456",
	"name": "Environment Demo",
	"values": [
		{
			"key": "at_the_top",
			"value": "something",
			"enabled": true
		},
		{
			"key": "baseURL",
			"value": "https://my-awesome-endpoint",
			"enabled": true
		},
		{
			"key": "my_var",
			"value": "some data",
			"enabled": true
		}
	],
	"_postman_variable_scope": "environment",
	"_postman_exported_at": "2019-04-02T15:10:35.103Z",
	"_postman_exported_using": "Postman/7.0.7"
}

Save and reimport the file, this will now show those variables at the top of the list.

Not an ideal solution but something that will work now, if you didn’t want to try and drag your variable to the top of the list.

1 Like
#3

Thanks. I actually figured this out right after I submitted this. If still would be nice to have something actually in postman to do this.

Thanks for a work around though.

1 Like