I need to get some data for each player. The data is currently stored in player.readOnlyData. I'll then combine the data, build a CSV and use it for a report.
I am using CloudScript (Legacy).
How I imagine it should happen: 1. I call PlayFab API and trigger a scheduled action 2. In the call I send new arguments to be passed when calling the CloudScript function on each player 3. Each player handles the function and broadcasts their data either as a PlayStream event or makes a post call to an external webhook 4. The payload contains a common InstanceId parameter I've passed in step 2, so I can bundle the results, and results from the queried data. It will be like this
{
transactionid: 123,
player: "ASD123",
type: "boarKills",
value: 3
}
The problem is - I can't seem to find a way to programmatically call a cloudscript function on every player WITH CUSTOM parameters. If I create a Scheduled task, I can either schedule it, or trigger it via API but I don't seem to have access to the function's args. Can I make an API call and say "Hey, Playfab, run function X on every player with arguments: {x=1, y=0}" ?
I don't care about the transactionID being my value. If there's some FunctionTriggerInstanceID available - it could work. All I need is a common id for all player's results, so I can differentiate them from running the same function X hours later.
EDIT: I saw the UpdateTask method in the API, but I can't find a way to use it to update the Scheduled Tasks's actions > arguments