question

teemosoft2 avatar image
teemosoft2 asked

using Azure Fuction for update user data

I search some docs about azure function to contact playfab server for update userdata.

but I can't find.

I want to make function that

client send user data to azure fuction and azure function update userdata on playfab server.
(save user data quickly when user accidently quit the game)

I am using that with cloud script. but there is data size issue (30000byte limit)

please tell me how can I do this.

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

You will need to install the CSharp PlayFab SDK first, please refer to: https://docs.microsoft.com/en-us/gaming/playfab/features/automation/cloudscript-af/quickstart#playfabfunctioncontext

Then you could create a server instance API and call the UpdateUserDataAsync function to update the user data, please refer to this thread: https://community.playfab.com/questions/45472/how-can-i-use-server-api-in-azure-functions.html

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.