question

David Doucet avatar image
David Doucet asked

How to use GetBuildAlias in Unreal Blueprints

We would like to use the Build Alias feature to avoid having to specify a Playfab build id on the client to establish the connection to a server using the RequestMultiplayerServer API.

When trying to use that from our Unreal client we get this error message:

LogPlayFab: Response : {"code":401,"status":"Unauthorized","error":"NotAuthorized","errorCode":1089,"errorMessage":"Only entities of the following types may call this API: title"}

Which I understand as meaning this is only allowed to be run on the Playfab server.

The part I don't understand is that since this is available in Blueprint, it seems to assume that we're already running a server instance (of our game) at that point, but we're earlier than that in the flow; we're not connected yet and we want to request a server to connect to.

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

·
Sarah Zhang avatar image
Sarah Zhang answered

This API is designed for server-side to invoke. You can check the answer of this thread - API Entity types - Client vs. Title - Playfab Community for more information. As this answer said, youcan call the API GetBuildAlias on CloudScript using Azure Functions, and call the API ExecuteFunction on the clients to execute a function, so that the clients can obtain the build alias information. If you have any detailed questions about how to write the Azure Functions to call the API GetBuildAlias or how to call the API ExecuteFunction using Unreal blueprints, please feel free to let us know. We would suggest you post the separate threads for them so that we can focus on the specific questions.

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.