# Customizations around dynamic variables in mock server

**URL:** <https://community.postman.com/t/customizations-around-dynamic-variables-in-mock-server/35470>\
**Category:** Help Hub\
**Tags:** mock-server, dynamic-variable\
**Created:** [May 19, 2022, 10:34am UTC](https://community.postman.com/t/customizations-around-dynamic-variables-in-mock-server/35470 "2022-05-19T10:34:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![material-engineer-20](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@material-engineer-20](https://community.postman.com/u/material-engineer-20)\
**Post date:** [May 19, 2022, 10:34am UTC](https://community.postman.com/t/customizations-around-dynamic-variables-in-mock-server/35470/1 "2022-05-19T10:34:52Z")

</div>

> **Archived topic — some details may be out of date.**  
> Mock servers built from saved collection examples are still supported. Postman now also has **code-based mocks** : JavaScript request handlers plus a `config.yaml`, stored as files in your Git repository, which you can run locally or deploy. Create one in the app, or use the Postman CLI to generate one from an OpenAPI spec, collection or dataset (`postman mock generate`) and run it (`postman mock run`). See [About mocks](https://learning.postman.com/docs/design-apis/mock-apis/mocks/overview) and [Create a mock](https://learning.postman.com/docs/design-apis/mock-apis/mocks/create-a-mock).  
> Working with an AI coding agent? The [Postman plugin](https://github.com/postmanlabs/postman-plugin) can build and run mocks for you.  
> For current help, see the [Postman docs](https://learning.postman.com/docs/), try the free [Postman tools](https://www.postman.com/tools) (no account needed), or join us on [Discord](https://discord.gg/58aNNsRBGR).

**Your question may already have an answer on the community forum. Please search for related topics, and then read through the [guidelines](https://community.postman.com/t/about-the-just-getting-started-category/37) before creating a new topic.**

> Here’s an outline with best practices for making your inquiry.

_My question_:

How can I extend the dynamic variables in the saved example of mock server  
_Details (like screenshots)_:

I get the dynamic variables to generate the random data in the mock server but I have a bit of different requirement where I need to generate the custom data, e.g. generate the integers in increasing sequence or store the random integer in variable and refer the same at mutliple places.

_How I found the problem_:

_I’ve already tried_:
