# Handling Arrays from one call and compare its data in second call

**URL:** <https://community.postman.com/t/handling-arrays-from-one-call-and-compare-its-data-in-second-call/20895>\
**Category:** Help Hub\
**Created:** [March 1, 2021, 5:17am UTC](https://community.postman.com/t/handling-arrays-from-one-call-and-compare-its-data-in-second-call/20895 "2021-03-01T05:17:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rdamuluri](https://avatars.discourse-cdn.com/v4/letter/r/4491bb/32.png) [@rdamuluri](https://community.postman.com/u/rdamuluri)\
**Post date:** [March 1, 2021, 5:17am UTC](https://community.postman.com/t/handling-arrays-from-one-call-and-compare-its-data-in-second-call/20895/1 "2021-03-01T05:17:50Z")

</div>

How to store an array of dynamic data values.

For example, I receive n number of objects all having ssn element.

I need to know the count of objects received in get1 call, retrieve the response ssn as an array and run the get2 test call to check if all the ssn’s of the first call are retrieved in the get2 call also and to compare the SSN values from the two calls matches.

---

<div class="post-metadata">

**Author:** ![kitty-garrison](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/kitty-garrison/32/27117_2.png) [@kitty-garrison](https://community.postman.com/u/kitty-garrison)\
**Post date:** [March 2, 2021, 12:15am UTC](https://community.postman.com/t/handling-arrays-from-one-call-and-compare-its-data-in-second-call/20895/2 "2021-03-02T00:15:58Z")

</div>

Hi Raji, Looks like we both recently joined this forum. That’s cool!  
I thought your problem was going to be interesting and fun to solve so I took a look and think I have a solution for you. I have taken advantage of Postman’s public workspaces to share a collection that models your situation as closely as I could. Here is the [link to my collection](https://www.getpostman.com/collections/86cdb591dd7857b556c1). I have added extensive documentation to the collection and the two calls in it.

Please let me know if that solution works for your situation.

Be well,  
Kitty

---

<div class="post-metadata">

**Author:** ![meenakshi.dhanani](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/meenakshi.dhanani/32/5980_2.png) [@meenakshi.dhanani](https://community.postman.com/u/meenakshi.dhanani)\
**Post date:** [March 2, 2021, 12:54pm UTC](https://community.postman.com/t/handling-arrays-from-one-call-and-compare-its-data-in-second-call/20895/3 "2021-03-02T12:54:44Z")

</div>

Hey @kitty-garrison,  
Welcome to the community 👋  
Great job on using the public workspace to help the community. I’d love to fork your collection but the link doesn’t redirect me to the workspace. Could you paste the link to your public workspace?

---

<div class="post-metadata">

**Author:** ![kitty-garrison](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/kitty-garrison/32/27117_2.png) [@kitty-garrison](https://community.postman.com/u/kitty-garrison)\
**Post date:** [March 2, 2021, 5:48pm UTC](https://community.postman.com/t/handling-arrays-from-one-call-and-compare-its-data-in-second-call/20895/4 "2021-03-02T17:48:59Z")

</div>

Thanks @meenakshi.dhanani !  
Here is the link to my public Demo workspace that has that collection in it.  
[https://www.postman.com/solar-powered-cats/workspace/demos/overview](https://www.postman.com/solar-powered-cats/workspace/demos/overview)  
Please let me know if that works for you 😁

---

<div class="post-metadata">

**Author:** ![hannah.neil](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/hannah.neil/32/4477_2.png) [@hannah.neil](https://community.postman.com/u/hannah.neil)\
**Post date:** [March 9, 2021, 6:19pm UTC](https://community.postman.com/t/handling-arrays-from-one-call-and-compare-its-data-in-second-call/20895/5 "2021-03-09T18:19:06Z")

</div>

@kitty-garrison - love, love, love that you’re using public workspaces like this! Brilliant.
