As a Salesforce Administrator, I want to be able to create a new Queue with the name "Support Team B" i and associate it to Case Object in Apex so that I can better manage and organize my data.
Group newGroup = new Group(); newGroup.Name = 'Support Team B'; newGroup.Type = 'Queue'; insert newGroup; // Associate the queue with the Case object QueueSobject queueSobject = new QueueSobject(); queueSobject.QueueId = newGroup.Id; queueSobject.SobjectType = 'Case'; insert queueSobject;