question

jawadkhan85 avatar image
jawadkhan85 asked

How to fetch title data via Cloud script

Hi I want to create a cloud script , where I want to fetch title data to modify/compare my user data via cloud script.

Can you let me know how to integrate it in cloud script.

Title Data
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

·
Rick Chen avatar image
Rick Chen answered

In CloudScript (legacy), you can use "server.GetTitleData()" API to get title data and use "server.UpdateUserData()" to update a user's data.

for example:

     server.UpdateUserData({
       "PlayFabId": "**************",
       "Data": {
         "Class": "Fighter",
         "Gender": "Female",
         "Icon": "Guard 3",
         "Theme": "Colorful"
       },
       "Permission": "Public"
     });
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.