question

omar avatar image
omar asked

Attach custom data to existing events

We are using the PlayStream to post process some specific events on our own backend server.

We would like to attach the player's email to the player_inventory_item_added so we can award the player something based on the item that is added.

Is there any way to make that happen?

We can create a custom event and some cloud code to add that info, but it would be nice to be able to attach arbitrary data to it without so much hassle.

Thanks.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

The default events for the platform have a specific set of data elements, which you can review in our docs, here: https://api.playfab.com/playstream/events. If you need to have events that contain additional data, I'd have to recommend using custom events via our analytics API calls (ex: https://api.playfab.com/documentation/client/method/WritePlayerEvent).

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

omar avatar image omar commented ·

That is what we ended up doing, I was just wondering if there was a easier way to do that. I'll add it as a feature request probably.

Thank you.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.