Saturday, November 7, 2015

Profile Utility class for get profile Name.

UTILITY CLASS FOR PROFILE::
 
public string getUserInfo(){    
    
      String usrProfileName = [select u.Profile.Name from User u where u.id = Userinfo.getUserId()].Profile.Name;

      return usrProfileName ;
   }




String usr = AF_DealerCRM_Utility.getUserInfo();// CALLING USER PROFILE UTILITY CLASS 

No comments:

Post a Comment