# How to add static/hardcoded data in a flow

**URL:** <https://community.synatic.com/t/how-to-add-static-hardcoded-data-in-a-flow/392>\
**Category:** Flows\
**Tags:** flows\
**Created:** [November 13, 2023, 6:48pm UTC](https://community.synatic.com/t/how-to-add-static-hardcoded-data-in-a-flow/392 "2023-11-13T18:48:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Faizel](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.synatic.com/faizel/32/918_2.png) [@Faizel](https://community.synatic.com/u/Faizel)\
**Post date:** [November 13, 2023, 6:48pm UTC](https://community.synatic.com/t/how-to-add-static-hardcoded-data-in-a-flow/392/1 "2023-11-13T18:48:44Z")

</div>

If you need to add static or hardcoded data to a flow, please refer to the instructions provided below.

There are multiple methods available to include static data within a flow. In the following example, we will explore a few approaches for incorporating static data into a flow.

# Record Generator
The Record Generator source step serves the purpose of generating a specific number of empty or structured records in JSON format. The configuration of this step enables you to determine the quantity of records to be generated, as well as define the JSON data structure itself.

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/synatic/original/2X/4/4636a3e6aa6cbcec3369b1e5b03e8c8d2607f898.png)

The above test will return the data in Synatic as per the image shown below

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/synatic/original/2X/3/32854cae0f676f47f1ce2e10c076e521fe491384.png)

# Calculator
The Calculator mapper step provides the ability to modify the record or payload using JavaScript code. In the example below, a new field is added to the existing dataset.

**N.B: The calculator step will stream one record at a time to the Calculator step for processing**

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/synatic/original/2X/d/de862ba4f97ca5a16e5643307798fd05a255d7ce.png)

The output when testing will be shown as per the image below

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/synatic/original/2X/b/b5b04689b754bd02bf71fc4f10aee15e1156145d.png)

# Solution Parameter
A Solution Parameter can also be used to add static/hardcoded data into a flow. For detailed information on this topic, please refer to the following links:

[https://community.synatic.com/t/how-to-reference-a-solution-global-parameter-many-static-parameters-in-a-calculator-step-send-an-email-notification/280](https://community.synatic.com/t/how-to-reference-a-solution-global-parameter-many-static-parameters-in-a-calculator-step-send-an-email-notification/280)

[https://community.synatic.com/t/how-to-reference-javascript-code-one-static-parameter-that-can-be-used-globally-or-in-a-specific-solution-in-your-organization/281](https://community.synatic.com/t/how-to-reference-javascript-code-one-static-parameter-that-can-be-used-globally-or-in-a-specific-solution-in-your-organization/281)
