Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • General Discussion /
avatar image
Question by Darius Vu · Aug 13, 2020 at 05:51 AM · datascheduled taskstasks

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,

Comment

People who like this

0 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Citrus Yan · Aug 13, 2020 at 07:30 AM

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.6 kB)
Comment

People who like this

0 Show 0 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    2 People are following this question.

    avatar image avatar image

    Related Questions

    How to make cron jobs on Playfab? 1 Answer

    where to see list of action group 1 Answer

    Problem in send email action for a segment(Nothing happens) 2 Answers

    Is is possible to have a quicker run for a Scheduled Task targeting the allPlayers segment? 1 Answer

    Best way to make weekly rotation. 1 Answer

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges