I make the API call as normal to CloudScript, then in the handler I do this:
var GrantItems = server.GrantItemsToUser({ "PlayFabId": currentPlayerId, "ItemIds": jsonData.hull, });
I get a proper response back from the Script as shown below, but when I try to access the data via:
GrantItems.ItemGrantResults.ItemInstanceId or GrantItems["ItemGrantResults"]["ItemInstanceId"]
I'm getting an error, it returns undefined or null
"PlayFabId": "EC8A1047D88320F1", "Result": true, "ItemId": "20001", "ItemInstanceId": "1893B3CF8363B827", "ItemClass": "hulls", "PurchaseDate": "2016-09-07T16:34:40.493Z", "Annotation": "Item granted by Admin", "CatalogVersion": "main", "DisplayName": "Mauser Gunboat Mk 1", "UnitPrice": 0