# How can we create function in case of Postman flows

**URL:** <https://community.postman.com/t/how-can-we-create-function-in-case-of-postman-flows/38831>\
**Category:** Help Hub\
**Tags:** variables, functions, postman-flows\
**Created:** [September 4, 2022, 12:45pm UTC](https://community.postman.com/t/how-can-we-create-function-in-case-of-postman-flows/38831 "2022-09-04T12:45:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![research-saganist-70](https://avatars.discourse-cdn.com/v4/letter/r/ac91a4/32.png) [@research-saganist-70](https://community.postman.com/u/research-saganist-70)\
**Post date:** [September 4, 2022, 12:45pm UTC](https://community.postman.com/t/how-can-we-create-function-in-case-of-postman-flows/38831/1 "2022-09-04T12:45:45Z")

</div>

I have to decode the jwt to fetch the details and use it in subsequent requests. In the collection I created a function to perform this action and was setting the environment variable to use in requests. Now the option available are durable and variables which only set the values from response object. Is there any way to perform some operation on the response object values before using them as variable in the next request.

---

<div class="post-metadata">

**Author:** ![yatman](https://avatars.discourse-cdn.com/v4/letter/y/b38774/32.png) [@yatman](https://community.postman.com/u/yatman)\
**Post date:** [September 9, 2022, 8:34pm UTC](https://community.postman.com/t/how-can-we-create-function-in-case-of-postman-flows/38831/2 "2022-09-09T20:34:43Z")

</div>

You gonna have to be more specific on what “operation” you want to do

---

<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/how-can-we-create-function-in-case-of-postman-flows/38831/3 "2024-12-12T12:52:20Z")

</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.
