Microsoft graph api planner task bulk insertion

45 Views Asked by At

We are using microsoft graph api v1.0 in our .Net core application from planner tasks crud operations. Steps we are performing are:

  1. Create group
  2. Create planner plan
  3. Create multiple tasks under above group and plan.

Sometimes everything works fine but some times some task fails. We loop our tasks list and do post call through graph api sdk for c#.

We get 400 or 500 randomly while creating plan under group on multiple retries, it creates sucessfully.

Some times on planner task post call we get 400 or 500 response.

Any idea how we can do these batch calls without missing tasks

1

There are 1 best solutions below

0
Mehtab Siddique On

These might be the reasons why 400 errors might be happening as mentioned in the docs

enter image description here

For more information:https://learn.microsoft.com/en-us/graph/api/resources/planner-overview?view=graph-rest-1.0#common-planner-error-conditions

These are the ways to create a planner and to avoid the 400 errors: https://learn.microsoft.com/en-us/graph/api/planner-post-plans?view=graph-rest-1.0&tabs=csharp#response

Hope this helps.