# Mock Data

Users can now manually override DataHub variables using mock JSON data, directly from the DataHub. This ability allows configuring and testing step responses even before a workflow is synced, specifically within Code Runner and Formatter steps.

#### How It Works

* Locate a Code Runner or Formatter step in the DataHub.
* Click the mock data icon next to the step response.
* A popup will appear allowing you to edit and input mock JSON data.
* The provided mock data will:
  * override the existing response for that step.
  * be used as the response for downstream mapping or logic.
  * be replaced automatically when the workflow is synced and a realtime response is generated.

#### Use Case

This is particularly useful for:

* Testing workflows before real data is available
* Manually configuring mappings when building new flows
* Debugging formatters or custom logic using controlled input

#### Example

Mock JSON data:

```json
{
  "orderId": "12345",
  "status": "PENDING",
  "customer": {
    "id": "9876",
    "email": "test@example.com"
  }
}
```

This input will be treated as the step response for downstream mapping or transformation logic.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfXHKmMVSJdCL6eI0hGiNbrUJp2q25DQKXAbj-udYCt8bMbgd4YPjsVMDmf_mur6U0CGzxSUwrZLigOMqlKtjj87n2Oa9gFAqN8Hpi9PWD5JtbvZptC4fGxHL-Xg3Q9CR3MLJ3oSQ?key=wC4f4SBvUvQBDAaSHX4Z5qRA" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcT79yOnvawF1vnumCXadVHaPCbSWoCGXXsAZIyMW31VsMrTZqOQ5L9caRlYnjUuWJgGNzx3zKBxgeN4Gc4GY3fRp_iBvvKgtGxtM2wFzLmK9nvU68K5vZU6uSKKsXDjmwkcd_aBA?key=wC4f4SBvUvQBDAaSHX4Z5qRA" alt=""><figcaption></figcaption></figure>

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.dckapintegrator.com/project-manager/workflows/mock-data.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
