# Not able to use flows as module which has request block and using variable

**URL:** <https://community.postman.com/t/not-able-to-use-flows-as-module-which-has-request-block-and-using-variable/74632>\
**Category:** Help Hub\
**Tags:** help, community\_help, postman-flows\
**Created:** [January 30, 2025, 9:06am UTC](https://community.postman.com/t/not-able-to-use-flows-as-module-which-has-request-block-and-using-variable/74632 "2025-01-30T09:06:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![avionics-specialist3](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@avionics-specialist3](https://community.postman.com/u/avionics-specialist3)\
**Post date:** [January 30, 2025, 9:06am UTC](https://community.postman.com/t/not-able-to-use-flows-as-module-which-has-request-block-and-using-variable/74632/1 "2025-01-30T09:06:05Z")

</div>

I’m having trouble using one flow as a module in another flow. The request block in the flow that I’m using as a module contains a body that contains the variable {{payload}}. Additionally, the pre-request script in the API request does a few data operations.

Remarkably, when I use it directly, the flow functions properly; but, when I use it as a module, the error is: Failed to parse body.

My object looks like

```auto
{
    "client_id": 1234,
    "hmac": "92c6",
    "payload": {
        "first_name": "J",
        "last_name": "Singh",
        "email": "J@gmail.com",
        "date_of_joining": "2024-05-20",
        "employee_id": "J-123",
        "role_id": "8df05228-b6f2-4fcb-bcef-f4sss4e8bbe",
        "phone_number": "+898717171",
        "reporting_manager_id": "27c40457-d8ba-4ef9-ssss-c69622229364"
    }
}

```

[Image](https://us1.discourse-cdn.com/getpostman/original/3X/0/a/0a216c9cb1464cb0a1fed0863581b70519d40cd8.png?deviceId=171f2039-2eb6-4d52-9112-e7627992e07e)

[Image](https://us1.discourse-cdn.com/getpostman/original/3X/0/0/00371d14ef6d37e441607d1a63ea0189898d56e4.png?deviceId=171f2039-2eb6-4d52-9112-e7627992e07e)

---

<div class="post-metadata">

**Author:** ![avionics-specialist3](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@avionics-specialist3](https://community.postman.com/u/avionics-specialist3)\
**Post date:** [January 30, 2025, 12:17pm UTC](https://community.postman.com/t/not-able-to-use-flows-as-module-which-has-request-block-and-using-variable/74632/2 "2025-01-30T12:17:25Z")

</div>

So, i figured out the issue was the configuration where i was not allowing the full request hence the request object was never complete and {{payload}}} was not assigned while i was trying to use it in pre-request.

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/b/7/b73152aa02849f7a482933b5860fd29bb1d1f5b3.png)
