Calls duplicated by ESI

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 :slight_smile:

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.

1 Like

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

So much to learn… :slight_smile:

I’d advise you join the GESI discord server. Since your questions are going to be GESI/Sheets related, not so much ESI specifically.

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