question

Darius Vu avatar image
Darius Vu asked

How to store the data structure in Playfab?

Dear support team,

I am using Playfab to store the user's data of my app. Now I want to store the user's data following the data structure that is recorded as below:

DateTime | Category | Task | Score

In each record, it will include 4 fields: DateTime, Category, Task, Score. And I will use it to show on the daily report. Users also add/ edit/ delete any record.

In that way, could you tell me how to do like it with Playfab?

Thank you so much for your support!

Best,

datascheduled taskstasks
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

·
Citrus Yan avatar image
Citrus Yan answered

PlayFab supports storing user data in JSON, in your case you can store your data in the following format:

{
  "Records": [
    {
      "DateTime": "",
      "Category": "",
      "Task": "",
      "Score": ""
    },
    {
      "DateTime": "",
      "Category": "",
      "Task": "",
      "Score": ""
    },

    ...

  ]
   
}

Here is screenshot showing how it’s stored in Player Data:

You can also store it in Entity Objects, please check out this doc for more info: https://docs.microsoft.com/en-us/gaming/playfab/features/data/entities/entity-objects


userdata.png (15.3 KiB)
10 |1200

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

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.

Error rendering WebPanel (widgets/consolidation-widget.ftl): org.hibernate.hql.internal.ast.QuerySyntaxException: AvailableConsolidation is not mapped [from AvailableConsolidation up where up.node = :node]