so. I tried to get objects for cloud script caller, but server has returned error
{"api":"/Object/GetObjects","request":{"Entity":{"Id":"9F7B1E70CE2BAB83","type":"title_player_account"}},"result":null,"apiError":{"code":400,"status":"BadRequest","error":"ProfileDoesNotExist","errorCode":1298,"errorMessage":"No title_player_account profile found at 9F7B1E70CE2BAB83","errorHash":null,"errorDetails":{}}}
i have read an entity tutotial and there are thing called "titlePlayerId", but it is not defined anywhere in cloud script and i have no imagine how to get it there
also is there cloud script api reference? or where can i find sources or anything that can help me develop it?
Title id also 9EC4.
Thanks for an answer!
Answer by Brendan · Apr 30, 2018 at 05:23 PM
[Edit - corrected]
This was actually more confusing than it needed to be, so I've updated the tutorial (https://api.playfab.com/docs/tutorials/entities/getting-started-entities) to clarify.
The Master Player ID is the PlayFab ID you get back from calls to log in or to GetAccountInfo. The Entity ID for the player at the title level is returned from any login call where you set LoginTitlePlayerAccountEntity to true.
For Cloud Script, it's simply JavaScript, with the addition of the ability to call any Server API method. There are also a few built-in variables you can make use of - it's all detailed in our Cloud Script tutorial in our automation tutorials: https://api.playfab.com/docs/tutorials#landing-automation.
Sending Telemetry events from Server 1 Answer
Cloudscript returning NULL in Response 1 Answer
How to check if User is part of a group at the same time when using ListMembership function 2 Answers
Using Object - Set Objects via Cloudscript - numbers are always converted to booleans 1 Answer
[SERVER or Cloud Script] Retrieving Server CustomData or Tags without Client.GetCurrentGames 1 Answer