How to get total number of roles in Salesfore? November 26, 2014June 9, 2022Magulan Duraipandian Sample SOQL: SELECT COUNT(Id) FROM UserRole Cheers!!!