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 /
  • Bugs /
avatar image
Question by andy-3 · May 16, 2019 at 04:32 PM · CloudScriptapisPlayer Data

title_player_account PlayFabId does not work with cloud script

We are transitioning to using the title_player_account PlayFabId for the majority of our API calls. When we use the SetUserReadOnlyData client api it works, but when we try to make the same calls withing cloud script, it doesn't update. We don't receive any errors in CloudScript.

It's not throwing any errors, calls are succeeding, but Player Data (Title) isn't being updated

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 v_humcin · May 16, 2019 at 11:02 PM

Can you clarify which data you are trying to work with?

If you view a player in the game manager, the tab "Player Data (Title)" contains three types of data:

  • Player Data (Referred to as UserData in API calls)
  • Read Only Data (Referred to as UserReadOnlyData in API calls)
  • Internal Data

Each of these is distinct and there may be a chance that they are being mixed up. There is no SetUserReadOnlyData Client API call, as updating Read Only Data is restricted to the UpdateUserReadOnlyData API call available in the Server and Admin API.

Are you possibly using the UpdateUserData Client API call on the client and the UpdateUserReadOnlyData Server API call in the cloud script, this could explain why the cloud script is not updating the same data as the client?

Comment

People who like this

0 Show 2 · 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 andy-3 · May 17, 2019 at 01:58 PM 0
Share

From CloudScript, GetUserReadOnlyData and UpdateUserReadOnlyData are being used and are not working with title_player_account PlayFabId.

From the client, PlayFabClientAPI.GetUserData and PlayFabClientAPI.UpdateUserData are used.
sometimes from the client they work with title_player_account PlayFabId, sometimes they do not.

The same calls that work with master_player_account PlayFabId are not working with player_title_account PlayFabId. @Kirk_Moonlight

avatar image v_humcin ♦ andy-3 · May 17, 2019 at 10:21 PM 0
Share

The master_player_account PlayFabId is required for thePlayFabClientAPI.GetUserData and PlayFabClientAPI.UpdateUserData API calls, along with the other calls that affect "Player Data". The title_player_account id cannot be used for this purpose and is instead used for the Entity APIs specifically, such as the Groups API.

The Client API is part of the "Classic APIs" which are not built upon the newer entity system, so you will not be able to use the title_player_account for calls from this API. The Server and Admin APIs are also "Classic APIs".

For data storage you may be interested in the Data API as this will allow you to store data using the title_player_account. This is a quickstart guide that can help you with storing data in the Data API using "Entity Objects" and "Entity Files": https://docs.microsoft.com/en-us/gaming/playfab/features/data/entities/quickstart

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

    GetPlayerCombinedInfoRequest no longer includes DisplayName in response 2 Answers

    Get players in segment count Via cloud script and update title data 1 Answer

    TypeError when trying to declare a call to server.GetPlayersInSegment(); 1 Answer

    GetObjects/SetObjects InternalError 1 Answer

    Request timeout 3 Answers

    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