I'm writing a custom CloudScript to be called when player_inventory_item_added event is triggered.
This script needs to access the CustomData field of the newly added item, however I noticed this is not passed along with the event data according to https://api.playfab.com/playstream/events/player_inventory_item_added.
Is there a way to get this data without explicitly searching the item in the inventory? Seems like doing an extra API call for this would not be the best way, but maybe I'm wrong.
Also, if I want to edit the CustomData of this new item, should I call https://api.playfab.com/documentation/server/method/UpdateUserInventoryItemCustomData ? Or is there a more optimal way such as directly modifying the data passed in to the event and then returning it?
Thank you very much in advance!