Questions tagged [microsoft-graph-batch]

Combine multiple requests in one HTTP call using JSON batching

JSON batching allows you to optimize your application by combining multiple requests into a single JSON object. For example, a client might want to compose a view of unrelated data such as:

  • An image stored in OneDrive
  • A list of Planner tasks
  • The calendar for a group

Combining these three individual requests into a single batch request can save the application significant network latency.

See: https://developer.microsoft.com/en-us/graph/docs/concepts/json_batching

9 questions
2
votes
1 answer

Microsoft Graph SDK Request Next Link of the Batch Response

I am using Microsoft Graph SDK to create a batch request that contains individual requests to request 20 different users. When I call GetNextLinkAsync() the result is always null. I have tried requesting 1000 different users using batch requests…
2
votes
1 answer

Batch: Sequencing requests with the dependsOn property

The documentation Combine multiple requests in one HTTP call using JSON batching for sequencing requests with the dependsOn property indicates that not all calls in the sequence needs to be dependent, however, when making the following batch call I…
2
votes
1 answer

Graph explorer fails with batch

Using Graph Explorer I get the photo of a group with request https://graph.microsoft.com/v1.0/groups/12345678/photo/$value. Response preview shows the photo correctly. When trying to get the photo of the same group using batch…
mimate
  • 62
  • 9
1
vote
2 answers

Converting this code to use Microsoft Graph with batch mode

Here is my code for deleting a set of calendar entries: public async Task DeleteCalendarEvents(SettingsBase oSettings) { try { var oEvents = await _graphClient .Me …
Andrew Truckle
  • 17,769
  • 16
  • 66
  • 164
0
votes
0 answers

Graph batch API throw error for update recurrent meeting with modifications

I created recurrent meeting with attendee in Office365 calendar. Then updated one of occurrence - change subject for creating modifications. I found Id of master event by graph-explorer and want to update subject. For updating I used GraphAPI…
0
votes
0 answers

Batching in Microsoft Graph

I added the following code to add users to AAD group in batches in C#: public IEnumerable FindBatches(IEnumerable users, AzureADGroup targetGroup) { var batches = GetBatchRequest(users,…
0
votes
1 answer

Is there any way to pass response object values from first request to second request as input parameters in graph batch request

Is there any way to pass response object values from first request to second request as input parameters in graph batch request (2nd request is dependant on 1st request - graph/json-batching) In the following request, the client is specifying that…
0
votes
1 answer

Microsoft Graph API - unterminated string literal Error when searching for emails which contain # in the subject

When i am searching for emails on office 365 in a batch query, i am getting a unterminated string literal error. This is happening only when i have a # character in the subject search query. Forum discussions like this…
0
votes
0 answers

Graph batch requests returning invalid Retry-After header values

Graph seems to be returning invalid retry-after header values. Fiddler traces show I'm receiving 429 Too Many Requests error codes from batched requests sent to the v1.0/$batch endpoint, but the Retry-After header I'm receiving are all decimals…