Hi there, I'm trying to use ExecuteInventoryOperations from an azure function but it's returning an error saying "Missing parameters".
This is how I'm calling the request:
ExecuteInventoryOperationsRequest ExecuteInventoryOperationsRequest = new();
ExecuteInventoryOperationsRequest.Entity = Context.CallerEntityProfile.Entity.ToEconomyEntityKey();
ExecuteInventoryOperationsRequest.Operations = new();
foreach (CatalogItem Item in ItemsToGrant)
{
AddInventoryItemsOperation Operation = new();
Operation.Item = new InventoryItemReference { Id = Item.Id };
Operation.Amount = 1;
Operation.NewStackValues = new();
ExecuteInventoryOperationsRequest.Operations.Add(new InventoryOperation{Add= Operation});
}
var Result = await PlayFabServerUtils.GetEconomyAPI(Context).ExecuteInventoryOperationsAsync(ExecuteInventoryOperationsRequest);
The API instance running the request has the title authentication and the developer secret key which works fine for other requests. I'm not sure how to find out what parameter I'm missing and I can't find any code examples for this. What am I doing wrong?
Much thanks for the help.