How'd I go about getting all the values and keys within a GlobalDataStore?

What do you want to achieve?
I want to get all the keys and values if possible within a GlobalDataStore, since someone already did it before and I’m curious how.
What is the issue?
There is no function that can allow this (or atleast documented).
What solutions have you tried so far?
I’ve tried looking on the API reference and the only thing I find that can retrieve a value is GetAsync and IncrementAsync, but those require a key wich I don’t know. Then looked on the devforums and the only thing I’ve found was workarounds wich is not what I’m looking for.

I’m not asking for a workaround or anything like that, I’m asking if it’s possible and how to find all the keys within a GlobalDataStore without knowing them.

If you already have the global data store with a bunch of stored values, then there is pretty much no way to do it. If you are looking to start from scratch though, the way you could do it is this:

Create both a global data store and an ordered data store.
Whenever you save something in the global data store (I assume it’ll be a UserId as the key), simultaneously save something to the OrderedDataStore with that same key. The value can just be any number, it won’t matter.

So for example, if you want to save {“hi”,“there”} to a global datastore under the key 54556995, you should do that and then ALSO use OrderedDataStore:SetAsync(54556995, 0) (once again, the value won’t matter. Just has to be a number since it’s ordered data store).

Then, you can iterate through every Page of the ordered data store whenever you want to retrieve all the values from the Global Data Store since the keys will be the same.

Hope that made sense, it’s what I do when I need to do this.

How did someone do it? Since they didn’t use the warning messages for retrieveing keys. Also, I’m not asking for a workaround such as using an OrderedDataStore or trello, ect.

I just told you how I’d do it, I don’t know how “someone” did it when you don’t even specify who that someone is…

There is no function for global data stores that will do this for you, so there isn’t any way to do it that isn’t what you’re considering a “walk around.”