# How to save schema to environment and reuse it after

**URL:** <https://community.postman.com/t/how-to-save-schema-to-environment-and-reuse-it-after/1359>\
**Category:** Help Hub\
**Tags:** environments, schema\
**Created:** [April 3, 2018, 11:24am UTC](https://community.postman.com/t/how-to-save-schema-to-environment-and-reuse-it-after/1359 "2018-04-03T11:24:03Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![kunagpal](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/kunagpal/32/9_2.png) [@kunagpal](https://community.postman.com/u/kunagpal)\
**Post date:** [April 6, 2018, 9:24am UTC](https://community.postman.com/t/how-to-save-schema-to-environment-and-reuse-it-after/1359/2 "2018-04-06T09:24:18Z")

</div>

Hey @alzarka, this looks quite similar to [How to save schema to environment and reuse it after](https://community.postman.com/t/how-to-save-schema-to-environment-and-reuse-it-after/1359). You can reuse schema definitions across requests as follows:

1. Save `pictureSchema` into an environment variable as follows:

```auto
pm.environment.set('picture_schema', JSON.stringify(schemaPicture));

```

1. In the script where `commentSchema` is defined, refer `pictureSchema` as follows:

```auto
const commentSchema = {
   .
   .
   .
   "picture": JSON.parse(pm.environment.get('picture_schema'))
   .
   .
   .
}

```

In this manner, you can include the common reference wherever needed.

---

_[View the full topic](https://community.postman.com/t/how-to-save-schema-to-environment-and-reuse-it-after/1359)._
