question

spynorbays avatar image
spynorbays asked

Get User Account Info requires PlayFabId

I'm calling GetUserAccountInfo in CloudScript to get the PlayFab ID of a player using their Display Name. The Docs state PlayFabId field isn't required in the request but I'm still getting an invalid input parameters error.

What might be the issue here and how can I fix it?

CloudScript
logs.png (30.9 KiB)
function.png (10.3 KiB)
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

I noticed there is some issue in the request body of your GetUserAccountInfo call. You have put an Object as the parameter of the “TitleDisplayName”. According to this document: GetUserAccountInfo, this API only takes “PlayFabId” as argument, and it should be a string. There is no way to get the PlayFabId from TitleId on CloudScript. You may use the client API GetAccountInfo in the client side instead.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.