# Passing objects as variable in Flows

**URL:** <https://community.postman.com/t/passing-objects-as-variable-in-flows/45527>\
**Category:** Help Hub\
**Tags:** postman-flows\
**Created:** [March 23, 2023, 7:29pm UTC](https://community.postman.com/t/passing-objects-as-variable-in-flows/45527 "2023-03-23T19:29:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![orbital-module-phys8](https://avatars.discourse-cdn.com/v4/letter/o/838e76/32.png) [@orbital-module-phys8](https://community.postman.com/u/orbital-module-phys8)\
**Post date:** [March 23, 2023, 7:29pm UTC](https://community.postman.com/t/passing-objects-as-variable-in-flows/45527/1 "2023-03-23T19:29:49Z")

</div>

_My question_:  
I’m trying to create an object out of multiple variables (using Record), and then pass that one down into a request body key. The thing is that by doing that, the object is stringified and the api request fails.  
How can I achieve this?

_Screenshots_:

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

You can tell that, while the output and variable are JSONs, the body looks as follows:

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/0/c/0c1990ff1bb82d4ca0138b45fe253f64085d107d.png)

_I’ve already tried_:

1. the example above
2. Using the output directly into the request instead of using a variable.

I could get around this by being able to encrypt/decrypt an object using the same methods as I do in pre-request scripts (using [this](https://www.postman.com/postman/workspace/postman-answers/request/18070393-8e222e0a-1972-4804-a72f-5d993445c848) method), but nothing like that seems to exist in Flows for now

Does anyone have any clue on how to achieve this?

Thanks for any help!
