Hello All!
Like in the title, could you please fix my code so that I can add a line to the JSON of an existing object?
Thank you very much in advance for your help :)
handlers.makeEntityAPICall = function (args) { // create an entity key, set another player's key. var target = { Id: args.TargetId, Type:"title_player_account" } var apiResult = entity.SetObjects({ Entity: target, Objects: [ { ObjectName: "gifts", DataObject: { //I want the content of the object here, and below I want to add line to that GifterID: currentPlayerId, } } ] }); return { setResult: apiResult.SetResults[0].SetResult }; };