# Environment JSON File Creation without populating values in "INITIAL VALUE"

**URL:** <https://community.postman.com/t/environment-json-file-creation-without-populating-values-in-initial-value/11268>\
**Category:** Help Hub\
**Tags:** variables, environments, setenvironmentvariab\
**Created:** [March 10, 2020, 5:00am UTC](https://community.postman.com/t/environment-json-file-creation-without-populating-values-in-initial-value/11268 "2020-03-10T05:00:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![krishna](https://avatars.discourse-cdn.com/v4/letter/k/71c47a/32.png) [@krishna](https://community.postman.com/u/krishna)\
**Post date:** [March 10, 2020, 5:00am UTC](https://community.postman.com/t/environment-json-file-creation-without-populating-values-in-initial-value/11268/1 "2020-03-10T05:00:51Z")

</div>

Our team has an app that automatically generates environment JSON file. This file follows the example structure given below

```
{
  "name": "testEnv",
  "values": [
    {
      "enabled": true,
      "key": "path",
      "value": "post",
      "type": "text"
    },
    {
      "enabled": true,
      "key": "foo",
      "value": "bar",
      "type": "text"
    }
  ],
}

```

When our developers import this file, the values are automatically getting populated in “INITIAL VALUE” field, thus syncing whatever the variables are to postman servers.

Trying to see if it’s possible to generate the JSON file in such a way that the postman client will only populate values in “CURRENT FIELD” and there by not syncing the variables to postman servers. Any help is much appreciated.

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [March 10, 2020, 10:48am UTC](https://community.postman.com/t/environment-json-file-creation-without-populating-values-in-initial-value/11268/2 "2020-03-10T10:48:48Z")

</div>

Hey @krishna,

Welcome to the community! ⭐

Firstly, I would love to see the app you’ve developed to automatically create environment files…sounds really cool!! 🏆

So for your question, by design the _Current Values_ are only for local use and are not sync’d to the server through the app or part of the exported files. You wouldn’t be able to share an environment that only has your current values.

With the format that you have, it’s going to always add the `string` to both the Current and Initial value fields.

You could do something like this which would create the environment file with the `path` and `foo` variable placeholders, the other members of your team could import the file and then fill only the _Current Values_ on their own machine.

```
{
	"name": "testEnv",
	"values": [
		{
			"key": "path",
			"value": "",
			"enabled": true
		},
		{
			"key": "foo",
			"value": "",
			"enabled": true
		}
	]
}

```

---

<div class="post-metadata">

**Author:** ![krishna](https://avatars.discourse-cdn.com/v4/letter/k/71c47a/32.png) [@krishna](https://community.postman.com/u/krishna)\
**Post date:** [March 10, 2020, 7:00pm UTC](https://community.postman.com/t/environment-json-file-creation-without-populating-values-in-initial-value/11268/3 "2020-03-10T19:00:57Z")

</div>

@danny-dainton Thanks for the prompt response! It looks like there isn’t a way to mark something as a credential, which could prevent populating values in _Current Values_.

Is it possible to implement this feature? Something like this:

```
{
	"name": "testEnv",
	"values": [
		{
			"key": "Authorization",
			"value": "",
			"enabled": true
            "type": "secret"
		}
	]
}

```

Creating a _ **type** _ of _ **secret** _ could let Postman client know that it is a secret and hence should not populate the value in _Current Value_.

---

<div class="post-metadata">

**Author:** ![krishna](https://avatars.discourse-cdn.com/v4/letter/k/71c47a/32.png) [@krishna](https://community.postman.com/u/krishna)\
**Post date:** [July 6, 2020, 4:54pm UTC](https://community.postman.com/t/environment-json-file-creation-without-populating-values-in-initial-value/11268/4 "2020-07-06T16:54:16Z")

</div>

Just checking back if there’s any update on the ask here. It would be super helpful if we could find a way to not automatically populate the secrets in _CURRENT VALUE_ when using json to populate environment values.
