0
Answer

case in sql when in a single column there are rows with diff conditio

var plannerTask = new PlannerTask
{
    PlanId = "wOJWGexB0U-a3n-LZ9nX_2UAD-xT",
    BucketId = "RWBdSfn0h0OsFR9XBksEKmUAIgaG",
    Title = "Update client list 100",
    CreatedById = "ba8ebefe-fdb9-4ef6-b6c0-80c745d12a0e", // Set the CreatedBy user object ID
    AssignedById = "ba8ebefe-fdb9-4ef6-b6c0-80c745d12a0e", // Set the AssignedBy user object ID
};

// Create a new GraphServiceClient with application permission
var client = new GraphServiceClient(new ClientCredentialProvider(clientId, clientSecret, tenantId));

// Create the Planner task
var createdTask = await client.Planner.Tasks.Request().AddAsync(plannerTask);