Getting Application List from DataStores

I’m attempting to have an application be saved and then a list of applications be avaliable to access on DataStores.
(I will later put information onto GUI elements)

Here’s the keywords that things are saved to:

Name_UserId (Stores UserId)
Type_UserId(Stores application type in string)
Age_UserId (stores account age)
QA_UserId (stores a table with questions and answers)

(UserId is the player’s UserId.)

The issue is, I would like to be able to have a list of all applications that are stored.

I would like to have the script find all values with Name_… which will hold the UserId, then grab the Type, Age, and QA.

I’ve looked all over the development forum, but I haven’t been able to find anything I really understand well.

How data is saved:

function savedata(plr, apptype, age, qa)
	local DataStoreService = game:GetService("DataStoreService")
	local DataStore = DataStoreService:GetDataStore("PlayerApps")


	local success, err = pcall(function()
		DataStore:SetAsync("Name_" ..plr.UserId, plr.Name)
		DataStore:SetAsync("Type_" ..plr.UserId, apptype)
		DataStore:SetAsync("Age_" ..plr.UserId, age)
		DataStore:SetAsync("QA_" ..plr.UserId, qa) 

	end)

	if success then
		print("Data Saved Successfully")
	end
end


game.ReplicatedStorage.Details.OnServerEvent:Connect()

What I have for trying to read it:
(Not much.)

game.ReplicatedStorage.RequestTicket.OnServerEvent:Connect(function(plr)
	if plr:GetRankInGroup(6050458) >= 7 then
		loaddata()
	else
		plr:Kick("Forbidden,.. Client-Server Request terminated")
	end
end)


function loaddata()
	--yep that's it.
end

I’m most likely doing something completly wrong here, I don’t use DataStores often.

Any responce appreciated.

the closest thing I know of would be Ordered Data Stores

but …

Why not save each application separately in an array?

Ex:

local data = {
    {
        "K_reex",
        Type,
        Age,
        QA
    },
    {
        "Administrator_User2",
        Type,
        Age,
        QA
    }
}

Edit: This would keep your data in a more organized manner (imo), and accommodate for multiple applications by the same person.

Thanks for the responce! I may consider using a combination of both, but we’ll see what happens I guess.

I’m afraid I’m not exactly sure what you mean about that. Please elaborate.

EDIT: Ah, I see now