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