# How to extract a specific value from a Request Body in POSTMAN and save in a variable

**URL:** <https://community.postman.com/t/how-to-extract-a-specific-value-from-a-request-body-in-postman-and-save-in-a-variable/24468>\
**Category:** Help Hub\
**Created:** [June 3, 2021, 2:25pm UTC](https://community.postman.com/t/how-to-extract-a-specific-value-from-a-request-body-in-postman-and-save-in-a-variable/24468 "2021-06-03T14:25:00Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![bpricilla](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/bpricilla/32/6511_2.png) [@bpricilla](https://community.postman.com/u/bpricilla)\
**Post date:** [June 8, 2021, 8:44am UTC](https://community.postman.com/t/how-to-extract-a-specific-value-from-a-request-body-in-postman-and-save-in-a-variable/24468/11 "2021-06-08T08:44:07Z")

</div>

Based on our discussion your request type is not raw, it is “x-www-form-urlencoded”.

so try this snippet,

```auto
console.log(pm.request.body.urlencoded);

```

Similar to this [topic](https://community.postman.com/t/tests-pm-request-body-output-all-key-value/5513/8).

You can refer [this link](https://www.postmanlabs.com/postman-collection/RequestBody.html) for more details.

@harutharut It’s all the same details we discussed yesterday, sharing it here so that it might be useful for someone in future 😊

Please let me know if there’s still any issue.

---

_[View the full topic](https://community.postman.com/t/how-to-extract-a-specific-value-from-a-request-body-in-postman-and-save-in-a-variable/24468)._
