Martin L suggested an idea · Dec 02, 2016 at 06:50 PM · apis
I would like to be able to set custom data when I purchase an item. Currently the only way to do this is to ignore the built in Purchase item API and use a cloud script that contains a Grant Item and Subtract Currency pair, and then set my custom data. It would be great to have an API call that purchased the item and then executed a given cloud script, with the purchased item instance id as an argument to the script.
For reference, here's discussion of the annoying workaround for not having this functionality (make sure you leave the data in a state where it can be finished next time the user logs in, in case he bails in the middle of the purchase) : https://community.playfab.com/questions/521/207389858-Purchase-from-server.html
(3rd time I've posted this, in case anyone wonders what it means when the other 2 posts appear)
The lower section ("Post a comment") on an Idea works the same as posting an Answer on a Question in the other forums. Due to issues dealing with spammers, we had to make the settings for AnswerHub put new posts in those categories into a moderation queue for any user with 0 reputation. I've taken care of the other two posts, to prevent confusion.
Brendan commented · Jun 06, 2017 at 06:17 PM
To do this, you would use a PlayStream Rule (action trigger) that fires on the player_inventory_item_added, running a Cloud Script that adds the custom data you need (using the information on the item which is available in the context passed into the Cloud Script handler).
We would love to know what you need. Submit your ideas and upvote others to help us prioritize.
Add 'UpdateEmailAddress' to API -- Currently you have to do this manually
API methods/CloudScript functions to interact with multiple Shared Groups at once
Server API Allowed to Request Audit History Logs
RequestMultiplayerServer should return the BuildId used to instantiate the server.
ClientAPI for changing DisplayName of inventory ItemInstances
Request WeChat login integration
Throttle errors to return the time remaining, or the specific limit reached
Updating PlayFab API for Unreal Engine