I am trying to use SaleAvailabilityLocations for an asset ID under GetProductInfo from Marketplace Service. Link for reference: MarketplaceService:GetProductInfo
However, this key supposedly is not a number or string but a dictionary type. I am only used to pulling info on asset IDs (specifically from UGC accessories) such as the name or sales numbers since that returns a string/number and I can have that information inserted into a textbox.
Under SaleAvailabilityLocations, the description says âThe itemâs ProductLocationRestriction
or sale location setting (e.g. anywhere, Shop only).â Clicking on âProductLocationRestrictionâ brings up this information: ProductLocationRestriction
What I am trying to do is find the value of an asset IDâs âSaleAvailabilityLocationâ
But for example, if I try to run
--newAsset is the asset product info from marketplace service
local info = newAsset.SaleAvailabilityLocations
print(info)
It just returns ânilâ
I canât figure out how to get the value of an assetâs âSaleAvailabilityLocationsâ. I think I am more confused about using the enums associated with it. I have also tried running something like this
if newAsset.SaleAvailabilityLocations == Enum.ProductLocationRestriction.AvatarShop then
print("ForSaleInCatalogOnly")
but this also doesnât work.
How can I use enums to figure out the âSaleAvailabilityLocationsâ of an asset id? I feel like I am over complicating this, I just cant get anything to work.