You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The response that comes back from (await odata.SendAsync(batch, stoppingToken)) only includes a single response (The batch response). I need to see the responses to my individual requests (POST) here.
By sending the request using odata.BatchAsync(batch, stoppingToken) we were able to get a return with 201 status when successful and the body response for each of the changeset items in the batch.
var batch = new BatchRequest($"{endpoint}/$batch")
{
Requests = requests.Select(r => r.Item2).ToList()
};
var responses = await odata.BatchAsync(batch, stoppingToken);
for (var i = 0; i < requests.Count; i++)
{
var response = responses[i];
var request = requests[i];
await _externalApiLogService.ProcessResponse(request.Item1, response);
}
@dbonabalaya This lib has tow SendAsync method, one return single result and the other return multiple result.
You can get multiple result when pass IBatchRequest.
When I send a request like:
--batch
--changeset
POST ...
--changeset
POST ...
--changeset--
--batch--
The response that comes back from (await odata.SendAsync(batch, stoppingToken)) only includes a single response (The batch response). I need to see the responses to my individual requests (POST) here.
Any advice @iwate ?
The text was updated successfully, but these errors were encountered: