GetCollection (Method)

From Legacy Roblox Wiki
Jump to navigationJump to search
GetCollection( Integer categoryId )
Returns Table (See below)
Description: Returns the most recent entries for the given category (see limitations).
Member of: InsertService

Table Format

This format is used with AdvancedResults is set (the default):

Example
local tab = game:GetService("InsertService"):GetCollection(catinfo.categoryId) 
for ndx,assetinfo in ipairs(tab) do 
print(ndx) 
for k,v in pairs(assetinfo) do print(k, "=", v) end 
end


Limitations

  • Currently, the maximum number of items returned is 100. There is no way to further filter the selection.

See Also