Hi Im trying to get the price of one of my items with cloud code but it keeps returning null all the time... Ive tested returning other variables like (ItemId, etc...) and they work. but this one doesnt
handlers.PurchaseOutfit = function (args, context) { var outfitID = args.outfitID; var request = server.GetCatalogItems({CatalogVersion: 0.1}); var catalogItems = request.Catalog; var length = catalogItems.length; for(var i = 0; i < length; i++) { if(catalogItems[i].ItemId == outfitID) { var priceOfOutfit = 0; priceOfOutfit = (catalogItems[i].VirtualCurrencyPrices["00"]).Value; return { messageValue: priceOfOutfit }; } } };