# Pass data from one block to another

**URL:** <https://community.postman.com/t/pass-data-from-one-block-to-another/60421>\
**Category:** Help Hub\
**Tags:** postman-flows\
**Created:** [April 29, 2024, 3:04am UTC](https://community.postman.com/t/pass-data-from-one-block-to-another/60421 "2024-04-29T03:04:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mr-ask-chay](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/mr-ask-chay/32/28756_2.png) [@mr-ask-chay](https://community.postman.com/u/mr-ask-chay)\
**Post date:** [April 29, 2024, 3:04am UTC](https://community.postman.com/t/pass-data-from-one-block-to-another/60421/1 "2024-04-29T03:04:52Z")

</div>

Hi everyone,

I’m new to postman flows and I need a help from you guys, I’m trying to pass the data from one block to another, the first block is successfully sending the data but the problem is within the second block it is not capturing the data correctly, i will provide you the whole flow in a picture below you can find it.

 ![flow_help](https://us1.discourse-cdn.com/getpostman/original/3X/2/e/2e288b1fde83c5d74cb2ca0bcaf95128022b680f.png)

The pass data is the value of body.responseBody from the first block which is a String “RANDOM12Aw” and that data need to be pass as a param of the second block. I will provide the second block API as well in the form of picture, please check it once.

 ![flow_helo2](https://us1.discourse-cdn.com/getpostman/original/3X/2/9/29f0953ace89e70126558277d1b0f4da9c8949d4.png)

if you see the picture 2 it is the API for the block 2 and in the place of key i leave it blank cause it need to get the value form the block1. The problem here is the key is empty. The data is not retrieving properly,

---

<div class="post-metadata">

**Author:** ![flows-daniel](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/flows-daniel/32/25516_2.png) [@flows-daniel](https://community.postman.com/u/flows-daniel)\
**Post date:** [April 29, 2024, 4:50pm UTC](https://community.postman.com/t/pass-data-from-one-block-to-another/60421/2 "2024-04-29T16:50:57Z")

</div>

Hi @mr-ask-chay

The key in your request should be `ruidKey` and the value should be `{{ruidKey}}` (or whatever you want to call it). {{variables}} are automatically replaced by the value passed into the flow.

---

<div class="post-metadata">

**Author:** ![mr-ask-chay](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/mr-ask-chay/32/28756_2.png) [@mr-ask-chay](https://community.postman.com/u/mr-ask-chay)\
**Post date:** [April 30, 2024, 3:07am UTC](https://community.postman.com/t/pass-data-from-one-block-to-another/60421/3 "2024-04-30T03:07:48Z")

</div>

thanks @flows-daniel its worked.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [May 3, 2024, 3:07am UTC](https://community.postman.com/t/pass-data-from-one-block-to-another/60421/4 "2024-05-03T03:07:55Z")

</div>

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
