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 Timo · Oct 12, 2020 at 06:23 AM · Player DatadataTitle Data

How to store the daily data in Playfab?

Hi team,

I want to store all daily data of users in Playfab server in order that I can make the daily report in our app.

For example,

On Monday, an user does the task list: Task 1 -> Task 2 -> Task 3....

On Tuesday, he does other task list: Task 3 -> Task 2 -> Task 4...

And continuing...

So could you tell me how to store the user's data of all days in Playfab server?

Many thanks.

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 · Oct 12, 2020 at 08:24 AM

In your case I would suggest you use PlayStream events to keep track of players’ daily data. For instance, when player A finishes task A, write an event looks like the following:

{
  ...
  "EventNamespace": "title.xxx",
  "Timestamp": "2020-10-12T00:00:00.0000000Z",
  "EventName": "player_completed_task",
  "EntityId": "xxx",
  "TaskName": "A",
  ...
} 

All the event data generated by your title will be stored in PlayFab Insights, where you can query them freely and therefore make a report from it. There are many ways to access Insights data, you can either use our built-in query tool Explorer, or connect other external tools to it: Connecting external tools to Insights.

In additional, please also note that Insights data has default retention setting of 30 days, if you need more than that, you can adjust it in Insights Management under the data section in Game Manager: https://docs.microsoft.com/en-us/gaming/playfab/features/insights/insights/performance-retention#retention

Comment
Timo

People who like this

1 Show 5 · 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
avatar image Timo · Oct 12, 2020 at 09:16 AM 0
Share

Thanks Citrus, following your comments, I understand that I can use PlayFabClientAPI.WritePlayerEvent() to write an event when an player finishes an task. And then we will have the list of events.

But I am confusing about making the report in my app. For example, if player queries the data in one week then the data list following date from Monday to Sunday will be shown in the client. (Not an admin page)

So how to do like this? In Playfab, do we have any API function for reading events or some thing to do this?

Thank you again.

avatar image Citrus Yan Timo · Oct 12, 2020 at 10:00 AM 0
Share

I was assuming that you wanted to make a report based on all the players' event data and analyze it internally. Clients have no authority to read events or something similar. In your case, I think you could just use Player Data instead, every time a player completes a task, add it with the timestamp into player data, players can request it and make a report based on this.

avatar image Timo Citrus Yan · Oct 12, 2020 at 11:16 AM 0
Share

Thanks, but how do I store player data with the timestamp in Playfab? what kind of API that we will use to store data? Because we have a lot of player data day by day after they finish tasks.

Show more comments
avatar image Timo · Oct 14, 2020 at 12:31 AM 0
Share

Thank you so much for your support!!! I will try following your comments.

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

    News with Claimed Rewards 1 Answer

    Is there a way to Send Data between Clients ? 1 Answer

    Get player data from leaderboard players 1 Answer

    How to distinguish data between development version and live version in PlayFab? 1 Answer

    Data Encryption for Player Data and CloudScript responses 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