# Webhook payload using echo function then storing the data as collection variable

**URL:** <https://community.postman.com/t/webhook-payload-using-echo-function-then-storing-the-data-as-collection-variable/39399>\
**Category:** Help Hub\
**Tags:** variables\
**Created:** [September 23, 2022, 5:01am UTC](https://community.postman.com/t/webhook-payload-using-echo-function-then-storing-the-data-as-collection-variable/39399 "2022-09-23T05:01:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![avionics-explorer-71](https://avatars.discourse-cdn.com/v4/letter/a/b5ac83/32.png) [@avionics-explorer-71](https://community.postman.com/u/avionics-explorer-71)\
**Post date:** [September 23, 2022, 5:01am UTC](https://community.postman.com/t/webhook-payload-using-echo-function-then-storing-the-data-as-collection-variable/39399/1 "2022-09-23T05:01:04Z")

</div>

Hi everyone,  
so i triggered the postman webhook from some application and i am receiving the data as payload in postman, everything is working fine but here is the issue, i want to save the data received from the payload using previousRequest and WebhookData and store it in the collection variable or the global variable but i tried everything using pre request script like using pre request script is the only option  
Let me know if there is any solution thanks

---

<div class="post-metadata">

**Author:** ![w4dd325](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/w4dd325/32/12436_2.png) [@w4dd325](https://community.postman.com/u/w4dd325)\
**Post date:** [September 24, 2022, 11:59am UTC](https://community.postman.com/t/webhook-payload-using-echo-function-then-storing-the-data-as-collection-variable/39399/2 "2022-09-24T11:59:37Z")

</div>

Hi @avionics-explorer-71

Are you able to show what your response looks like?  
Maybe a screenshot of what you see in your response?  
Cheers

---

<div class="post-metadata">

**Author:** ![avionics-explorer-71](https://avatars.discourse-cdn.com/v4/letter/a/b5ac83/32.png) [@avionics-explorer-71](https://community.postman.com/u/avionics-explorer-71)\
**Post date:** [September 24, 2022, 12:11pm UTC](https://community.postman.com/t/webhook-payload-using-echo-function-then-storing-the-data-as-collection-variable/39399/3 "2022-09-24T12:11:10Z")

</div>

I can’t it has sensitive information of client

---

<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:** [December 12, 2024, 12:52pm UTC](https://community.postman.com/t/webhook-payload-using-echo-function-then-storing-the-data-as-collection-variable/39399/4 "2024-12-12T12:52:18Z")

</div>

Closed on December 12, 2024, 12:52pm UTC

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