I am using cloud code and tried to get custom data of virtual pruchase, but can’t find anything about it. How can I get the custom data on Cloud Code? Thanks in advance
Hi @muhammet12 ,
You need to get access to your resource via the configuration which will allow you access to the custom data property.
You can also find his thread interesting:
Hello,
Is there a Cloud Code equivalent to “GetInventoryItem” ? I can use
InventoryItemDefinition definition = EconomyService.Instance.Configuration.GetInventoryItem(“MY_KEY”); from the client side, but I would like to do something with the custom data from Cloud Code that the player doesn’t need to have access to, and then send the result back. I don’t see any way to get resources from the economy via Cloud Code.
Let me know if you have questions!