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 /
  • API and SDK Questions /
avatar image
Question by JoshSagarOld · May 30, 2019 at 02:43 PM · Player Data

Storing a text file in playfab for one title

Hi,

What I would like to do is have a textfile stored on Playfab (per title) that can be edited from a mobile app when a user redeems an award.

Such as, user wins tournament, wins $5:

- Textfile is updated with player email, $5

Then each week I would download the textfile, make payments and then delete the contents of the textfile so it starts fresh.

So this would be one textfile that would be edited by all players when they redeem a reward, rather than storing this data per player.

How would this be achieved with current Playfab features?

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

Answer by Hernando · May 31, 2019 at 08:40 AM

We recommend that you define a leaderboard to record the player's reward amount and reset it after payment. You will use CloudScript to update the player's statistic to prevent the player from cheating, more information please see: https://docs.microsoft.com/en-us/gaming/playfab/features/automation/cloudscript/

Comment

People who like this

0 Show 1 · 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 JoshSagarOld · Jun 12, 2019 at 10:14 PM 0
Share

@Hernando that's not possible in my case, because I need to record the amount the user is redeeming (like 1.64), and their email address.

Yes I could store this in the player directly, but we are expecting thousands to be redeeming rewards, and we don't have time to open ever player directly, copy paste their email, go into player data, get reward amount etc.

We need to store the data in cvs format like

email,1.64

email,8.23

Someone suggested storing this in title data, which I could do, but if more than 1 user is writing to the title data field with key 'payouts' then they won't both get saved, and this is bound to happen.

Any suggestions?


Thanks

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

    1 Person is following this question.

    avatar image

    Related Questions

    UserPrivateAccountInfo should not be sent when email is not available 1 Answer

    Server GetPlayerCombinedInfo to get also user internal data 1 Answer

    best practice for syncing player data 1 Answer

    Problem with Google login and Playfab 1 Answer

    Data Access of Other Players 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