# Calls duplicated by ESI

**URL:** <https://forums.eveonline.com/t/calls-duplicated-by-esi/136684>\
**Category:** Third Party Developers\
**Created:** [January 29, 2019, 8:08pm UTC](https://forums.eveonline.com/t/calls-duplicated-by-esi/136684 "2019-01-29T20:08:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Valentine\_King](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/valentine_king/32/423475_2.png) [@Valentine\_King](https://forums.eveonline.com/u/Valentine_King)\
**Post date:** [January 29, 2019, 8:08pm UTC](https://forums.eveonline.com/t/calls-duplicated-by-esi/136684/1 "2019-01-29T20:08:44Z")

</div>

Hi there,

Looking for a bit of help…

Got a script in Google Sheets to pull in a list of current member IDs of our Corp:

function getMembers(opt\_headers) {  
var members = GESI.corporations\_corporation\_members(opt\_headers);  
{  
members = members.concat(GESI.corporations\_corporation\_members(opt\_headers));  
}  
return members;  
}

The script is being called in Sheets by =getMembers(). The list is being populated with current member IDs, but it is being repeated so I end up with two lists of the same data, with headers also being repeated.

What am I doing wrong and how can I only pull one set of data?

Appreciate any pointers…ESI noob still learning and figuring it out 🙂

---

<div class="post-metadata">

**Author:** ![Blacksmoke16](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/blacksmoke16/32/376589_2.png) [@Blacksmoke16](https://forums.eveonline.com/u/Blacksmoke16)\
**Post date:** [January 29, 2019, 8:11pm UTC](https://forums.eveonline.com/t/calls-duplicated-by-esi/136684/2 "2019-01-29T20:11:37Z")

</div>

Because you’re calling `GESI.corporations_corporation_members()` twice? Unless you are going to be doing additional logic within your `getMembers` function. Just do `=corporations_corporation_members()` in a cell.

---

<div class="post-metadata">

**Author:** ![Valentine\_King](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/valentine_king/32/423475_2.png) [@Valentine\_King](https://forums.eveonline.com/u/Valentine_King)\
**Post date:** [January 29, 2019, 8:18pm UTC](https://forums.eveonline.com/t/calls-duplicated-by-esi/136684/3 "2019-01-29T20:18:13Z")

</div>

LOL - yeah, that worked and did what I wanted. Thank you very much.

So much to learn… 🙂

---

<div class="post-metadata">

**Author:** ![Blacksmoke16](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/blacksmoke16/32/376589_2.png) [@Blacksmoke16](https://forums.eveonline.com/u/Blacksmoke16)\
**Post date:** [January 29, 2019, 8:19pm UTC](https://forums.eveonline.com/t/calls-duplicated-by-esi/136684/4 "2019-01-29T20:19:25Z")

</div>

I’d advise you join the [GESI discord server](https://discordapp.com/invite/eEAH2et). Since your questions are going to be GESI/Sheets related, not so much ESI specifically.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/eveonline/original/3X/4/1/41ec4921cbaca7a6f9ea556e7cc20018461eae5e.png) [@system](https://forums.eveonline.com/u/system)\
**Post date:** [April 29, 2019, 8:19pm UTC](https://forums.eveonline.com/t/calls-duplicated-by-esi/136684/5 "2019-04-29T20:19:30Z")

</div>

Closed on April 29, 2019, 8:19pm UTC

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