if(string.valueOf(c.OwnerId).startsWith(‘005′))
{
//owner is User
}
if(string.valueOf(c.OwnerId).startsWith(’00G’))
{
//owner is Queue
}
This can save you a SOQL 🙂 and is standard across all ORGS in salesforce
if our suggestion(s) worked, let us know by marking the answer as “Best Answer” right under the comment.This will help the rest of the community should they have a similar issue in the future.